3 ms·
Funny. I thought he was talking about Java 8 for a while. We (eventually, when the rest of the stack catches up) get functors / lambdas, but: * red = instanc
by Roboprog 12y ago
Funny. I thought he was talking about Java 8 for a while. We (eventually, when the rest of the stack catches up) get functors / lambdas, but:
* red = instance methods.
* blue = static methods, which cannot call an instance method.
- jongraehl 12y agoThat's not true. You can call an instance method from anywhere given an object. There's just no implicit 'this' in a static method.
- Roboprog 12y agoEr, what's that? I seem to have lost a receiver for your message... Once you go functional, instance methods start to look like a special klugery for currying the first argument to a function. Go and Nim (for instance) hint at this more than a little, as well, with their OOP syntax. Bundling two kinds of methods within a "class" starts to feel weird when you start using individual functions.