logoalt Hacker News

shiandowtoday at 11:08 AM2 repliesview on HN

I don't think it's too bad orthogonality wise, though it is a bit weird to introduce infix notation. It would almost make more sense to write

((. sum numbers) (1 2 3))


Replies

sphtoday at 11:36 AM

Your approach is better on a mathematical sense, yes. That’s how Haskell does it.

jnpnjtoday at 11:56 AM

schemers used a good old `compose` instead of a dedicated syntax