News for hackers. Stuff that matters.
Re:Lisp and Haskell (2015) by rxhernandez on Thursday October 08, 2020 @06:48AM (#24717864)
Is null even a type though? If not, then it would seem it's not a static type system that's solving it; it's something else entirely solving it (whether or not that something is contained in that specific type system).
Re:Lisp and Haskell (2015) by boloust on Thursday October 08, 2020 @07:06AM (#24717953)
The issue with null, as commonly implemented, is that null is a value that inhabits all types. So in that sense it is a defect of the type system.
Re:Lisp and Haskell (2015) by guenthert on Thursday October 08, 2020 @07:39PM (#24725130)
In Common Lisp, T is the "any" type (which makes sense there, as type specifiers can be formed using unions using (or type-A type-B ...) lists), the value NIL is the sole instance of the type NULL.