If I allowed 'next $label' then I'd also have to allow 'goto $label', and I don't think you really want that... :-)
About this quote
- What does it mean?
- The author refuses to implement ‘next $label’ because it would require also allowing ‘goto $label’, which he believes users don’t want.
- In plain terms
- Adding ‘next $label’ would force us to add ‘goto $label’, which isn’t desired.
- What can you take from it?
- Avoid language features that open doors to undesirable constructs.
Where it applies
Putting it to work
Questions to consider
- How to balance safety and flexibility?
- What criteria decide feature inclusion?
Another view
Restricting features may limit flexibility for some advanced users.
More from Larry Wall
Hey, I had to let awk be better at *something*... :-)
Permalink to quote #31 In general, if you think something isn't in Perl, try it out, because it usually is. :-)
Permalink to quote #33 Besides, it's good to force C programmers to use the toolbox occasionally. :-)
Permalink to quote #30
Related quotes
> (It's sorta like sed, but not. It's sorta like awk, but not. etc.) Guilty as charged. Perl is happily ugly, and happily derivative.
Larry WallLarry Wall quote #51 So far we've managed to avoid turning Perl into APL. :-)
Larry WallLarry Wall quote #72 We toast the Lisp programmer who pens his thoughts within nests of parentheses.
Alan PerlisAlan Perlis quote #2