|Keep It Simple, Stupid|
Re^3: How does 'goto LABEL' search for its label? (work-around)by tye (Cardinal)
|on Jan 17, 2013 at 19:42 UTC||Need Help??|
just that without it, the implementation of lexpads would be much simpler and saner.
Yeah, that would have been my best guess. I'm curious about how "much" simplification we are talking about. But I'll go digging in the p5p archives for more details if I find the time and motivation. :)
I wonder if the complications could be avoided by having behavior closer to this pseudo-Perl code:
So that the destination for "goto ERR;" would be the start of the lexical block instead of the first line in the lexical block.
It would be nice if a label pointing to the first line of a lexical block could just be moved to point to the start of the lexical block, avoiding the complexity and the need for deprecation. That is:
But, if one ends up using a Perl that has the deprecation but doesn't implement my idea, then it should often be relatively easy to rewrite the code to be more like: