News for hackers. Stuff that matters.
Re:Ask HN: Best talks of 2018? by owl57 on Sunday December 23, 2018 @05:55AM (#18745461)
You got it backwards. These problems arise when you want to use an (a -> b) function as (Maybe a -> b), not vice versa.
Re:Ask HN: Best talks of 2018? by joel_ms on Sunday December 23, 2018 @07:42AM (#18745772)
Yeah, you're right, I got confused when interpreting the parent comment. Thanks for pointing it out!

I guess I overlooked it because the other way is so logically trivial, since it basically boils down to A -> B => (A || Nothing) -> B, which is just an or-introduction. So if you wanna implement Maybe generically the "work" lies on the other side.

But since Hickey's argument sort of is that we shouldn't implement Maybe generically, I guess my argument here becomes circular. (Begging the question maybe?)

Re:Ask HN: Best talks of 2018? by nadagast on Friday December 28, 2018 @01:55AM (#18775246)
> I guess I overlooked it because the other way is so logically trivial, since it basically boils down

Yeah, that's (part of) Hickey's point. That the "best" type systems fail this test, and require manual programmer work to solve this problem. Again, I'm saying this as someone who really appreciates Haskell.