Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2014-07-24 05:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (158 votes), past polls