HackerTrans
トップ新着トレンドコメント過去質問紹介求人

crntaylor

no profile record

コメント

crntaylor
·13 年前·議論
I also think it's a bit weird to flip direction of composition, but there are a couple of advantages --

1. It keeps the "imperative" feel, so that you can write

    person.address.zipCode
rather than

    zipCode.address.person
2. There's an argument that mathematical functions are "back to front" and that it would be more natural to write functions left to right, i.e. (x)f rather than f(x), so that the function composition f.g is "apply f then apply g" rather than "apply g then apply f" which is where we are at the moment.