3 ms·
Funny you should mention it, raku just got the same feature! https://tio.run/##K0gtyjH7/7@4NEkhMy8ts8Lq0Gpbu0O7NVQSdRRUgGLFCkXlmgrVILatgkqiQi0XV26lgmdeCZCTnmrN
by moonchild 6y ago
Funny you should mention it, raku just got the same feature!
https://tio.run/##K0gtyjH7/7@4NEkhMy8ts8Lq0Gpbu0O7NVQSdRRUgGLFCkXlmgrVILatgkqiQi0XV26lgmdeCZCTnmrNxWVipGBrB@MUJ1ZCmP//AwA https://tio.run/##K0gtyjH7/7@4NEkhMy8ts8Lq0Gpbu0O7NVQSdRRUgG...
- kbenson 6y agoDoesn't Raku essentially already have this with feed operator? [1] 1: https://raku.guide/#_feed_operator https://raku.guide/#_feed_operator
- moonchild 6y agoNot quite. For example: > my $x (Any) > 1 ==> $x (1) > 2 ==> $x (2) > 3 ==> $x (3) > $x [1 2 3] If ==> were simply assignment, we would expect x's value to be 3.
- raiph 6y agoThere's no need for a new operator. The R metaoperator respects precedence, associativity, etc. my Int $age; 42 R= $age; say $age;