Re:Lisp and Haskell (2015)
by jimbokun on Thursday October 08, 2020 @12:54PM
(#24721059)
Shouldn't head return "Maybe a", since the head of an empty list would be "None"? (Not sure if I got the Haskell terminology correct.)
[ Parent
| on HN ]
In a better world it would. Currently it the head of an empty list crashes the program. Many people in the Haskell world are really salty about this but they don't want to break the API for it.