the #haskell function to check if a list is empty is called "null" #not_intuitive
@etorreborre Makes total sense; what else could sensibly be called null? Not to mention its lengthy history.
-
-
@dibblego@etorreborre isNull would have been a better name I think. -
@missingfaktor@etorreborre praps, but the type implies is-ness. - Show replies
New conversation -
-
-
@dibblego@etorreborre Nothing, or something more general perhaps? Shouldn't really be specialised to [] -
@mwotton@dibblego@etorreborre sadly, most of the Haskell Prelude is very specialised to [] - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.