3 ms·
Yes, these suggestions are among my favorite things about Rakudo. There are a lot more, too. Another example: > 1 == 1 ? "sane" : "insane" ===SORRY!==
by amyjess 11y ago
Yes, these suggestions are among my favorite things about Rakudo.
There are a lot more, too. Another example:
> 1 == 1 ? "sane" : "insane"
===SORRY!=== Error while compiling <unknown file>
Unsupported use of ? and : for the ternary conditional operator; in Perl 6 please use ?? and !!
at <unknown file>:1
Or:
> loop(my $i = 0; $i < 10; $i++) { say $i }
===SORRY!===
Word 'loop' interpreted as 'loop()' function call; please use whitespace around the parens
at <unknown file>:1
Easily the nicest error reporting I've seen in a compiler.