Sometimes I wish that when I typed:
my $foo = warn(sum(length($obj->attrs);
that it would just do the right thing with the parentheses and terminate the command at the semi-colon, like if I typed:
my $foo = warn(sum(length($obj->attrs)));
Call me Lazy but it makes sense to me.
The Serious End Brace (Score:1)
I don't hate:
Re: (Score:2)
I guess it's true that language designers end up reinventing Lisp :-). The square "superbracket" was introduced in Interlisp in the mid-60's. You can take a look at Steele and Gabriel's "The Evolution of Lisp" paper [psu.edu].
Re: (Score:1)
I'm a mature poet. I completely and knowingly stole that idea from Lisp.
(Of course, mentioning "poet" in the same context as Dick Gabriel is a good trick for other reasons.)
Use an intelligent editor (Score:1)
Shouldn’t be hard to script a reasonably malleable editor to trigger “look for unclosed opening parens within the statement and add the right number of closing ones” whenever you type a paren and semicolon. (Or some other shortcut of your choosing; I like Ctrl-Space and Alt-Space as choices for context-sensitively binding “do some magic here” macros.)
A language-level feature would be nice too, but it would require lots of special little syntax rules for how many parens t