Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • 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 to close in order to be really useful, and I’m not sure this is a corner of the language that’s worth devoting so much brainspace to. Doing it in the editor has the advantage that you can easily undo some of the fix-up by matching things up visually. (I presuppose that an editor which gives you sufficient programmability for this will also easily highlight matching parens for you.)