[REBOL] Re: syntax across languages
From: antonr:iinet:au at: 15-Nov-2003 23:21
Thanks Ladislav, for your corrections.
I have sent this also to the maintainer, Pixel.
I am not completely sure what function composition means.
Pixel said: "function composition is a function taking 2
functions and returning a new one."
Looking at some Haskell posts I see it kind of
glues two functions together, passing the result
from the first function into the second one.
There are (resolvable) problems when the number of
arguments are not the same, but, anyway...
Doesn't this just mean that this is function
composition:
add: func [a b][a + b]
mul3: func [a][a * 3]
add-mul3: func [a b][mul3 add a b]
?
Or it doesn't count because the "composition"
is specified in the body block, whereas Haskell
does it by referring only to the function names.
Also, let me just clarify that string joining can be
done with JOIN or REJOIN.
Anton.