Fork me on GitHub
#other-languages
<
2017-11-16
>
tjg18:11:18

Is there a good analysis arguing lisps ideally shouldn’t have nulls?

seancorfield18:11:29

@tjg Given nil-punning seems pretty core to idiomatic usage (at least in Clojure), I'd be surprised to find any goodarguments for that. I'd certainly be interested in reading anyone's attempted arguments on that topic tho'...

seancorfield16:11:04

That's not an argument against Clojure having nil. It's basically just good advice about idiomatic handling of nil (even tho' he seems to want to avoid calling it nil-punning -- up until the last paragraph!).

sundarj16:11:54

fair enough

dpsutton18:11:50

ive found that the use of nil punning can bite me when i go to extend some behavior. and then i need more information passed along so i'm always returning a map of stuff. so previously it would be (if-let (analyze-token token) ....) but then i want to start passing more information back like why the token was invalid, the nil punning causes a pretty big diff and takes the new information of failure or other things as success, since success just meant not nil in the past