in reply to Re^3: shift or die unless
in thread shift or die unless

If it's not runnable code, the logical grouping is impossible.

Replies are listed 'Best First'.
Re^5: shift or die unless
by eric256 (Parson) on Dec 04, 2008 at 15:28 UTC

    It would seem that you are arguing that any code that executes as expected is okay. I believe the point wasn't that the code was ambiguios to perl but rather to the programmer maintaining it. Yes it only does one thing and does it correctly and logicaly, however that doesn't mean that the way its phrased doesn't leave a programmer with some room for confusion.


    ___________
    Eric Hodges

      Mine was a rather ineloquent reply. No, whether it executes is not is not relevant to my argument. If you read back to my original reply, you'll see that was just an aside.

      To presume ambitiousness presumes the existence of a maintainer that doesn't know the very fundamentals of the language. Statements are Perl's building blocks. It's no coincidence that they are the first thing in the documentation. They are to expressions what parens are to subexpressions. Someone confused by them won't understand the rest of the statement anyway.