Dear Perl 6 Developers,
Request for Enhancement:
Would you consider throwing a compiler error on the following:
perl6 -e 'my $x=2;my $y=3; if $x = $y {say "yes";} else {say "no";}'
yes
It should have two == signs if it is followed by a {do something}
This is the correct way:
$ perl6 -e 'my $x=2;my $y=3; if $x == $y {say "yes";} else {say "no";}'
Many thanks,
-T
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Serious error.
All shortcuts have disappeared.
Screen. Mind. Both are blank.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~