News for hackers. Stuff that matters.
Re:Why Clojure? (2010) by dustingetz on Friday December 30, 2016 @09:13AM (#13284426)
fluent interfaces from OOP are different than composition because they mutate-and-return the object reference; if the instance is aliased anywhere else in the program there is spooky-action-at-a-distance. Composition is about programming with values without mutation. As far as syntax goes it is a trivial macro to translate `x.f().g()` into `g(f(x))` (clojure actually provides it : http://clojure.org/guides/threading_macros)
Re:Why Clojure? (2010) by yawaramin on Sunday January 08, 2017 @01:09PM (#13351025)
> they mutate-and-return....

Not necessarily; you can easily write instance methods which merely copy the existing object.