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:
[ Parent
| on HN ]
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.