Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Zeckendorf representation

by lidden (Curate)
on Aug 25, 2012 at 03:59 UTC ( #989686=note: print w/replies, xml ) Need Help??


in reply to Re^2: Zeckendorf representation
in thread Zeckendorf representation

What do you mean by "short circuit"?
It means that the part after || will only be evaluated if it is needed know the result of the operator. In the case of the or-operator the second half is redundant if the first is true, since the total will be true no matter what the second part is.

Replies are listed 'Best First'.
Re^4: Zeckendorf representation
by thmsdrew (Scribe) on Aug 27, 2012 at 03:40 UTC

    I don't really understand how that is a problem. If the first part passes, then I want it to return true, and I truly don't care what the second part is. I guess I see how that's redundant, though.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989686]
help
Chatterbox?
[choroba]: Yes, "tynovsky" there is my friend and ex-colleague, I needed to beat him at Fibonacci :-)
[Corion]: ;)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2017-10-20 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (260 votes). Check out past polls.

    Notices?