-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Labels
docsDocumentation issue (primary issue type)Documentation issue (primary issue type)
Milestone
Description
The issue concers this page :
https://docs.raku.org/language/operators
Here is pretty much the first sentence
The precedence and associativity of Raku operators determine the order of evaluation of operands in expressions.
Which is false, as demonstrated by this example :
$ raku -e 'print(1) ** print(2) ** print(3); say ""'
WARNINGS for -e:
Useless use of "**" in expression "print(1) ** print(2) **" in sink context (line 1)
123
I made a github issure very recently about it, as I confounded operators precedence and associativity VS order of evaluation of operands. If there are no side effects, then it doesn't change anything and you wouldn't even know that the order is different, as a language user, but if there are side effects, then it becomes apparent that there is a distinction.
Metadata
Metadata
Assignees
Labels
docsDocumentation issue (primary issue type)Documentation issue (primary issue type)