top | item 46402203

(no title)

tensegrist | 2 months ago

https://www.hillelwayne.com/post/divide-by-zero/

(discussion: https://news.ycombinator.com/item?id=17736046)

discuss

order

teiferer|2 months ago

I love that article of Hillel's!

dnautics|2 months ago

it's terrible advice for actual programmers though because often 0 is a sentinel value with special meaning for systems that you don't have control over (sometimes because of pre-digital conventions that shouldn't be lightly fucked with).

This is usually done by PL's that want to avoid crashes at all costs, but "turning crashes into subtle logic errors" seems like a really bad idea.