3 ms·
Ever since I started playing around with Java (or even earlier with C++) having data co-mingled with functions has never felt right to me. It just never seemed
by mortyseinfeld 13y ago
Ever since I started playing around with Java (or even earlier with C++) having data co-mingled with functions has never felt right to me. It just never seemed very extensible to me, especially in a language like Java. Even in C# where you have extension methods, they are second class citizens.
But also the old question of where to put a method seems like unecessary mental overhead for solving a problem. Use modules and just pass things in. You could probably even put some syntactic sugar in the language so that you could use the "object".method notation on the first argument passed in if you really wanted to.
So someone give me clojure with optional typing, a Python-like syntax, and get off my lawn!
- jamii 13y ago> clojure with optional typing, a Python-like syntax http://julialang.org/ http://julialang.org/