Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Zeckendorf representation

by thmsdrew (Scribe)
on Aug 27, 2012 at 03:41 UTC ( #989910=note: print w/ replies, xml ) Need Help??


in reply to Re: Zeckendorf representation
in thread Zeckendorf representation

Thank you for that. I see what you mean, and prefer yours. Why do you say that a sub containing exit is a red flag?


Comment on Re^2: Zeckendorf representation
Re^3: Zeckendorf representation
by Athanasius (Monsignor) on Aug 27, 2012 at 12:17 UTC
    Why do you say that a sub containing exit is a red flag?

    From exit:

    Don't use exit to abort a subroutine if there's any chance that someone might want to trap whatever error happened. Use die instead, which can be trapped by an eval.

    Think of a subroutine as a server providing a service to its clients (callers). It’s up to the client to decide how to handle the information returned by its server. Even an exception (thrown by die) is information which the client can use or ignore as desired. The server should never preempt the client in determining how to proceed.

    Hope that helps,

    Athanasius <°(((><contra mundum

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989910]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2014-08-22 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (156 votes), past polls