3 ms·
Possibly Scheme, where #f and '() are the only non-true values, and these are equivalent to false and nil in Ruby. I'm not sure if there are any earlier example
by weavejester 16y ago
Possibly Scheme, where #f and '() are the only non-true values, and these are equivalent to false and nil in Ruby. I'm not sure if there are any earlier examples of this.
- kanak 16y agoActually in Scheme, #f is the only false value. (e.g. the documentation for "if" in racket [1] says: "If it produces any value other than #f, then then-expr is evaluated, and its results are the result for the if form. Otherwise, else-expr is evaluated, and its results are the result for the if form. The then-expr and else-expr are in tail position with respect to the if form.") [1] http://docs.racket-lang.org/reference/if.html?q=if&q=false#(form._((quote._~23~25kernel)._if) http://docs.racket-lang.org/reference/if.html?q=if&q=fal...)
- weavejester 16y agoAck, you're right. I totally misread this.