Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff

by Jenda (Abbot)
on Oct 17, 2020 at 19:12 UTC ( [id://11122960]=note: print w/replies, xml ) Need Help??


in reply to Re: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff
in thread What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff

Re 3)a) - closing all inner is absolute nonsense, but it would make sense to use that as a further safeguard to prevent the case you mismatch braces in one place and accidentally "fix" it in another. I think it would be nice to be able to say "this is supposed to be the closing brace of matching that particular opening one, scream at me if it ain't". I don't think the "reversed label" syntax is possible without breaking a lot of stuff and the label syntax to mark the opening brace doesn't work well if you are not crazy enough to reserve a whole like just to the opening brace, but something like

if (whatever) { ... blah blah blah if (something) { ###FOOBAR ... a complicated code with plenty of braces } ###/FOOBAR } else { ... some more code }

could actually be helpful in complex code in case you accidentally type one too many/few closing braces within that marked block.

You'd still have to have the right number and nesting of braces, but you'd have one more check in place should you decide to ask for it.

Jenda
1984 was supposed to be a warning,
not a manual!

  • Comment on Re^2: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-24 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found