|
|
Warp wrote:
> case(compare(number, target)) of
> What would be wrong with a syntax like that?
All the functions in Haskell are curried. So it's really
case (compare(number)(target)) of ...
But yes, this is exactly the kind of thing I have trouble with too, in
these sorts of languages. Especially when it gets a little more complex
and you get stuff like
case bump . hither $ yo stuff of ...
or when people start writing binary functions that take values on both
the left and the right (in SML, not Haskell) and giving them names like
"o", with functions returning other functions composed by "o", which was
apparently not unlike the "." in Haskell.
this o that value
OK, so what's the precidence on that in ML? Yarg.
--
Darren New / San Diego, CA, USA (PST)
Post a reply to this message
|
|