[erlang-questions] is_integer should always be used?

not norwegian swede notnorwegian@REDACTED
Wed Jul 2 10:38:11 CEST 2008


when programming erlang, should i always use is_integer if a float will make the function crash?

i havent used so much exception-prevention in erlang and it seems the language needs a lot of extra code stuck it in ebcause of this.

if some one passes a float to a function that only takes integers, should i catch that exception or should i let the program crash?



      ___________________________________________________
Sök efter kärleken!
Hitta din tvillingsjäl på Yahoo! Dejting: http://ad.doubleclick.net/clk;185753627;24584539;x?http://se.meetic.yahoo.net/index.php?mtcmk=148783
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080702/d57646ed/attachment.htm>


More information about the erlang-questions mailing list