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