Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

item 25 and Perl 5 DWIMary (Re: My coding guidelines)

by John M. Dlugosz (Monsignor)
on Nov 26, 2002 at 23:29 UTC ( #215968=note: print w/replies, xml ) Need Help??

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.)

  • Comment on item 25 and Perl 5 DWIMary (Re: My coding guidelines)

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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://215968]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2020-10-01 01:38 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (172 votes). Check out past polls.