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
Can't adverb approximately-equals operator in Rakudo #5333
Comments
From @masak<masak> m: my $x = 0; say $x ≅ 0 :tolerance(1e-3) |
From @masak<sortiz> m: my $x = 0.0001e0; say infix:<≅> $x, 0, :tolerance(1e-3); # Indeed a bug, this works. |
From @MasterDuke17I've been looking into this and just got some clarification from TimToady Dan |
The RT System itself - Status changed from 'new' to 'open' |
From @bdugganIt seems that it is possible adverb custom operators, e.g. perl6 -e 'sub infix:<~~~>($x,$y,:$z) { say "$x $y $z" }; 1 ~~~ 2 :z(12)' However, when these are chained, the adverb is not distributed perl6 -e 'sub infix:<~~~>($x,$y,:$z) { say [$x,$y,$z].perl; 9 }; 1 ~~~ 2 ~~~ 3 :z(12)' So, if adverbs are made to distribute across infix operators in general then I suppose this existing behavior would change. |
Migrated from rt.perl.org#128210 (status was 'open')
Searchable as RT128210$
The text was updated successfully, but these errors were encountered: