In general, a method can express its action using its parameters, its object's state or global state as input, and its return value, object state or global state as output. The fact that parameters, object state and the return value can be accessed without a prefix is important.
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Rich Hickey disagrees, saying that's complecting. In Clojure (and not only) the philosophy is that the data-structure survives more than the code that operates on it and it's wrong to tie them together. But I agree w/ you and I like my encapsulation.
-
Hickey tends to publicly disagree with a lot of things he hasn't taken time to understand*. Here is him and Kay discussing the subject, and it doesn't appear that Kay's points got through him. https://news.ycombinator.com/item?id=11946935 … * Other examples: pattern matching, ADTs, dependent types
- Show replies
New conversation -
-
-
Oops (:
-
They should have called it Well-Handled Object-Oriented Programming.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.