Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

•Re: Re: Re: (5.6.1) map mayhem? (+{ {;)

by merlyn (Sage)
on Oct 07, 2003 at 21:42 UTC ( [id://297401]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: (5.6.1) map mayhem? (+{ {;)
in thread (5.6.1) map mayhem?

That might be the obvious case in hindsight. But you can't change the DWIMmery radically now, without having something subtly being made different. Also, I think it's the same DWIMmery used at the beginning of a statement that might also be a return value for a subroutine: you sometimes want that to be a block, and sometimes and hashref, hence the DWIMmery.

Personally, I find the "+" prefix and ";" suffix to that open brace a bit tacky, but certainly a lot better than having a language force me to always use 8-space tabs just to make sure that lined up things stay lined up since the lineup is syntactically significant. {grin}

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Re: Re: (5.6.1) map mayhem? (+{ {;)

Replies are listed 'Best First'.
Re: (5.6.1) map mayhem? (+{ {;)
by Abigail-II (Bishop) on Oct 08, 2003 at 11:24 UTC
    but certainly a lot better than having a language force me to always use 8-space tabs just to make sure that lined up things stay lined up since the lineup is syntactically significant.

    Not sure which language you are talking about, but I take Pythons or make's significant whitespace rules over the Perl significant whitespace rules (both of perl5 and perl6) any day, and twice on Wednesdays.

    At least the rules in Python and make make sense, those of Perl don't.

    Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-26 05:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found