3 ms·
I don't know about Scala, but List vs NonEmptyList is a huge problem in Haskell since head [] -> throws an error. There was an article on HN a week or so ago ab
by blacktriangle 5y ago
I don't know about Scala, but List vs NonEmptyList is a huge problem in Haskell since head [] -> throws an error. There was an article on HN a week or so ago about how to deal with this in a type system where it ultimately felt like they were reinventing nil punning.