syntax across languages
Ketil Z. Malde
11 Feb 2002 14:06:54 +0100
Pixel <firstname.lastname@example.org> writes:
>> In addition to . function composition, there's also $ function application,
>> which often is more practical to use.
> I could put it in "grouping expressions":
> $ ... Haskell
Yes, but that might apply to the . operator too. But yes, essentially
it replaces parentheses.
>> | bool0 = e0
>> | bool1 = e1
>> | ...
>> | otherwise = en
> i put this one in category "if_then_else" (just like Lisp's "cond")
Yes, "cond" is exactly what it is, I think.
> uh... how can this be one-line written?
Well, it needs to be part of something more, e.g.
| x==0 = True
| otherwise = False
>> I can't remember any %-based sprintf off the top of my head, but hey,
>> who'd want one anyway?
> me! I've always wondered how you internationalize a program without it?
That's easy - I don't :-)
If I haven't seen further, it is by standing in the footprints of giants