6 ms·
because all types are really (or <x> null). Did you miss a word there ? It happens to me all the time.
by srean 16y ago
because all types are really (or <x> null).
Did you miss a word there ? It happens to me all the time.
- regularfry 16y agoI don't think he did... took me a couple of passes, but it parsed in the end.
- jamie_ca 16y agoParse it as lisp. It's haskell-type-system-speak for "If you declare something to be a String, it really means String or null."
- pjscott 16y agoThe Haskell type for that would be "Maybe String". When you get a Maybe value, the compiler gives an error if you don't deal with the possibility that the value might be Nothing.