
18 Dec
2018
18 Dec
'18
2:06 p.m.
On Tue, 18 Dec 2018 at 15:34, Damien Mattei
ok well i do not want to open a discussion here, but i do not see any benefit in Haskell using Nothing and Just compared to other language, it's the same than if i had written in C something like : if (x == NULL) printf("NULL\n"); else printf("%s",*x);
i expected more from Haskell...
Well, you have to remember to do that in C, but in Haskell the compiler won't let you use a "Maybe a" as an "a". They're totally different things. That seems a pretty huge benefit to me, even ignoring everything else. What more could you want? -- Michael Walker (http://www.barrucadu.co.uk)