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

Useless use of "*" in expression ".price * .quantity" in sink context (2015.12 Regression from 2015.11) #4951

Closed
p6rt opened this issue Dec 28, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Dec 28, 2015

Migrated from rt.perl.org#127062 (status was 'resolved')

Searchable as RT127062$

@p6rt
Copy link
Author

p6rt commented Dec 28, 2015

From @atweiden

Golfed​:

<masak> m​: my @​a = -1, 2, -3; say [+] (.abs + .abs for @​a)
<camelia> rakudo-moar 64a61a​: OUTPUT«WARNINGS for /tmp/uySpvnhOVb​:␤Useless use of "+" in expression ".abs + .abs" in sink context (line 1)␤12␤»

@p6rt
Copy link
Author

p6rt commented May 7, 2016

From @smls

No longer an issue with current Rakudo​:

  ➜ my @​a = -1, 2, -3; say [+] (.abs + .abs for @​a)
  12

Not sure if a test is needed for this.

@p6rt
Copy link
Author

p6rt commented May 8, 2016

From @usev6

On Sat May 07 15​:26​:05 2016, smls75@​gmail.com wrote​:

No longer an issue with current Rakudo​:

➜  my @&#8203;a = \-1, 2, \-3; say \[\+\] \(\.abs \+ \.abs for @&#8203;a\)
12

Not sure if a test is needed for this.

I'm not really sure, either. But since we have a bunch of tests for cases where we expect a warning, I went ahead and added a test for the absence of a warning to S32-exceptions/misc.t with commit
Raku/roast@1804479bb2.

I'm closing this ticket as 'resolved'.

@p6rt
Copy link
Author

p6rt commented May 8, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt closed this as completed May 8, 2016
@p6rt
Copy link
Author

p6rt commented May 8, 2016

@usev6 - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant