(no title)
masak | 6 years ago
I remember when this was switched on. Larry Wall tried it out on the entire spectest suite, and nothing broke (or at most one random thing broke), because basically people already put whitespace around their infix operators.
Incidentally, apostrophes are also allowed inside Perl 6 identifiers.
Personally, I used to conservatively use underscore (`_`) in my Perl 6 identifiers for some years. Then I got used to hyphens, and it's hard to go back.
zwkrt|6 years ago
DonHopkins|6 years ago
faitswulff|6 years ago
Larry Wall seems hilariously easy-going for a language BDFL!
sp332|6 years ago
jackewiehose|6 years ago
So you are saying that code like a=b-c+d completely changed its meaning? Would this example become a = b-c + d or a = b-c+d or a=b-c + d or ...?
I just can't imagine how you would change an existing language to such an extent.
floatingatoll|6 years ago
“What is b-c, is that a variable or a math?”
“Is it (a=b-c)+d or a=(b-c+d)”
So you simply wouldn’t encounter code written like this, because it’s just as confusing as it is problematic for the hyphen change.