3 ms·
> Partial answers feel "bad" in Haskell because all the core functionality is clean enough to not need them Not to need them, sure, but not not to use them. (
by JadeNB 12y ago
> Partial answers feel "bad" in Haskell because all the core functionality is clean enough to not need them
Not to need them, sure, but not not to use them. (I swear that's the right number of 'not's.) I don't understand why something like Neil Mitchell's `Safe` isn't just the way that things are done by default.
- tel 12y agoUgh, yeah, total agreement here. Historical accident, I suppose. I try to pretend like `head` and `tail` just don't exist. You can always recognize a file where I'm doing list ops because I define `uncons :: [a] -> Maybe (a, [a])` at the top of the file, haha.
- mightybyte 12y agoEven better than safe, all this has been consolidated very nicely in the errors package.