
21 Nov
2016
21 Nov
'16
6:33 p.m.
On Mon, 21 Nov 2016, Joachim Breitner wrote:
It would also make teaching nicer, by pointing students to this function and saying „if then else is just syntactic sugar for it“. Slightly better than „if then else is just syntactic sugar for a hypothetical function that you can define, but that is not there.“
One implementation is there: http://hackage.haskell.org/package/utility-ht-0.0.12/docs/Data-Bool-HT.html#... if you want to point the students somewhere. :-)