
23 Aug
2010
23 Aug
'10
5:15 a.m.
On Mon, Aug 23, 2010 at 09:33:13AM +0300, John Smith wrote:
Why doesn't Haskell allow something like this?
fac 0 = 0 1 = 1 x = x * fac (x-1)
This would be clearer than repeating the function name each time, and follow the same pattern as guards and case.
Good question. I don't know of any particular reason. -Brent