
13 Jul
2012
13 Jul
'12
9:57 a.m.
Quoth Cale Gibbard:
Personally I don't see why everyone appears to prefer the syntax with \ in it over just the obvious case section syntax which was originally proposed.
case of { ... } ... Does anyone else agree?
Yes. I don't see this as an `anonymous function' in any special sense, only inasmuch as the workaround in its absence involves one. I.e., if I for some reason had been compelled to write \ a -> hPutStrLn stdout a ... that wouldn't make "hPutStrLn stdout" an anonymous function in my book. Neither is `case of ...' an anonymous function, or functions. Donn