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

Bogus (inconsistent?) 'useless use' warning on `eager`ed Ranges #1463

zoffixznet opened this issue Feb 1, 2018 · 0 comments


None yet
2 participants
Copy link

commented Feb 1, 2018

Simply slapping parens on makes it warn but without them, nothing:

<Zoffix__> m: eager (1..10);
<camelia> rakudo-moar 72948e847: OUTPUT: «WARNINGS for <tmp>:␤Useless use of ".." in expression "1..10" in sink context (line 1)␤»
<Zoffix__> m: eager 1..10;
<camelia> rakudo-moar 72948e847: ( no output )

At the very least it should be consistent, tho I could argue the use isn't useless (personally, I was measuring how long reification would take)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.