Is there a good analysis arguing lisps ideally shouldn’t have nulls?
@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'...
there is this: https://bsima.me/clog/robust-clojure-nil.html
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!).
fair enough
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