Re:Clojure: 1, Common Lisp: 0
by brl on Monday January 19, 2009 @09:43AM
(#440464)
Not sure what your point about Java is since it doesn't seem to be either very evil or a very pure OO language.
[ Parent
| on HN ]
Everything is in a class. Everything. Even poor little printf or the main function.
Re:Clojure: 1, Common Lisp: 0
by weavejester on Tuesday January 20, 2009 @05:20AM
(#441588)
Although Java puts everything in an class, not everything in Java is an object. For instance, you can't write:
Package p = java.lang;
Class x = p.String;
x y = "Hello";
Method z = y.substring;
w = z(0, 5);
Re:Clojure: 1, Common Lisp: 0
by mike_organon on Tuesday January 20, 2009 @03:31PM
(#442228)
That's just the syntax failing to support such a nice way of accessing those objects. Packages, classes, and methods are objects.
Of course, primitives are not objects, but autoboxing helps.
Re:Clojure: 1, Common Lisp: 0
by weavejester on Wednesday January 21, 2009 @08:19AM
(#443165)
Sure, they're represented as objects in the JVM, and you can access this via refection; but they're not treated as objects in Java's syntax. I'd argue that OOP is a property of a language's syntax, rather than how it is internally represented.