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

Re^2: Burned by precedence rules

by BrowserUk (Pope)
on Dec 30, 2008 at 05:01 UTC ( #733177=note: print w/replies, xml ) Need Help??


in reply to Re: Burned by precedence rules
in thread Burned by precedence rules

I suggest one also meditate on this: &&= and ||= exist; and= and or= do not.

S'funny, but that is exactly what makes them (and & or) so useful in boolean conditions.

But you will not see that usefulness until you cease making an wholly artificial distinction beween "flow control" and whatever you consider to be "non-flow control".

This: my $x = isSomething() and isSomethingElse() ? $p : $q;

is just as much "flow control" as doSomthing() or doSomethingElse();

as is: if( isSomething() and isSomethingElse() ) { ... } else { ... };


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^3: Burned by precedence rules
by ikegami (Pope) on Dec 30, 2008 at 06:12 UTC
    You highlighted "wholly artificial" as if it matters, as if a programming concept could be anything else? It's a funny argument to make.

      It's not the "programming concept" that matters. (Whatever that ethereal phrase may mean to you?)

      It is the wholly artificial distinction between "flow control" and whatever is the complement of that in this context?


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

        I make a whole lot of "wholly artificial distinctions". Most people call them "programming styles". Programing styles can be every shade of good and bad, but just pointing out it's a programming style isn't an argument.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://733177]
help
Chatterbox?
[tye]: I get an error string but no reason and no context. Like die "Could not read file.\n" but with a stack trace where all of the useful context is stripped.
[thezip]: Heya tye!
[tye]: hey, thezip!
[RonW]: Hi, tye, thezip
[RonW]: I see useless errors liek that from Perl programs, too.
[tye]: well, you certainly don't see strack traces with all of the values removed from Perl.
[thezip]: Howdy RonW. Not in *my* logfiles you won't!
[tye]: and I never claimed anything about 100% on either side.
[RonW]: Presumably because the coders didn't realize that die and warn will append line number and file when the message strings doesn'r end with a line terminator

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2017-09-21 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (252 votes). Check out past polls.

    Notices?