3 ms·
> In other words, anything that isn't False is True. :D Except for `nil` (lisps, ruby), and possibly a host of other things depending on the language (empty st
by masklinn 13y ago
> In other words, anything that isn't False is True. :D
Except for `nil` (lisps, ruby), and possibly a host of other things depending on the language (empty strings in javascript).
- agentultra 13y agoScheme is the only PL I know that has an explicit #f value. CL, for all intents and purposes, treats nil as False... but some find the conflation of nil and the empty list runs into the same issue when operating on s-exprs. CL-USER> (if '() 1 0) 0 vs scheme> (if '() 1 0) 1