2 Jul 10:36
is_integer should always be used?
From: not norwegian swede <notnorwegian <at> yahoo.se>
Subject: is_integer should always be used?
Newsgroups: gmane.comp.lang.erlang.general
Date: 2008-07-02 08:38:11 GMT
Subject: is_integer should always be used?
Newsgroups: gmane.comp.lang.erlang.general
Date: 2008-07-02 08:38:11 GMT
| 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://se.meetic.yahoo.net |
<div> <table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top">when programming erlang, should i always use is_integer if a float will make the function crash?<br><br>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.<br><br>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?<br> </td></tr></table> <br><table><tr><td>Sök efter kärleken! <br>Hitta din tvillingsjäl på Yahoo! Dejting: <a href="http://ad.doubleclick.net/clk;185753627;24584539;x?http://se.meetic.yahoo.net/index.php?mtcmk=148783">http://se.meetic.yahoo.net</a> </td></tr></table> </div>
RSS Feed