Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clunky expression in error message ("Useless use") #1748

Closed
COMBORICO opened this issue Apr 18, 2018 · 3 comments
Closed

Clunky expression in error message ("Useless use") #1748

COMBORICO opened this issue Apr 18, 2018 · 3 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@COMBORICO
Copy link

COMBORICO commented Apr 18, 2018

The Problem

Useless use of "sqrt $five" in expression "sqrt $five" in sink context (line 2)

Error message sounds robotic, strange use of English.

Expected Behavior

Ineffectual use of...

Steps to Reproduce

my $five = 5;
sqrt $five;
say $five;

(This must be done in a script, not REPL.)

Also:

sub do_twice($code) {$code; $code}
WARNINGS for :
Useless use of $code in sink context (line 1)
sub do_twice ($code) { #`(Sub|94507960233504) ... }

@AlexDaniel AlexDaniel added the LTA Less Than Awesome; typically an error message that could be better label Apr 18, 2018
@AlexDaniel AlexDaniel changed the title LTA: Clunky expression in error message ("Useless use") Clunky expression in error message ("Useless use") Apr 18, 2018
@jnthn
Copy link
Member

jnthn commented Apr 18, 2018

As a native English speaker, I don't find it particularly clunky. By contrast, "ineffectual" feels like useless use of a big word that still wants to mean "useless".

If anything, the "use of" could go away, as could repeating it if the useless term matches the expression as a whole, which would leave just Useless "sqrt $five" in sink context.

@usev6
Copy link
Contributor

usev6 commented Apr 18, 2018

The phrase 'useless use of' has some interesting background, cmp. http://porkmail.org/era/unix/award.html

I like the error message and IMHO it would be a pity to drop the 'use of' part.

@COMBORICO
Copy link
Author

Yeah, "useless use of" is fine. Sorry for taking up yall's time. Thanks for responses! Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

4 participants