http://www.perlmonks.org?node_id=215968


in reply to My coding guidelines

I read in Apocalypse 4,
But I've come to the conclusion that I'd rather screw around (a little) with the "insignificant whitespace" rule than to require an extra unnatural delimiter. If we observe current practice, we note that 99% of the time, when people write a hash subscript they do so without any whitespace before it. And 99% of the time, when they write a block, they do put some whitespace in front of it. So we'll just dwim it using the whitespace.

... Therefore, we will make the rule that a left curly that has whitespace in front of it will never be interpreted as a subscript in Perl 6. (If you think this is totally bizarre thing to do, consider that this new approach is actually consistent with how Perl 5 already parses variables within interpolated strings.)

Replies are listed 'Best First'.
Re: item 25 and Perl 5 DWIMary (Re: My coding guidelines)
by Abigail-II (Bishop) on Nov 27, 2002 at 09:44 UTC
    I'm well aware of that. It's also the main reason I'm not interested in perl6 at all.

    Abigail