Re: Clojure and OOP

2010-02-12 Thread Daniel Simms
On Thu, Feb 11, 2010 at 4:46 AM, HB wrote: > Since Clojure is a LISP dialect, does this mean that it doesn't > support OOP? Another answer is that ``it could be if you wanted it to be'', for example: http://s-expressions.com/2009/12/10/frumios-a-silly-object-system-for-clojure/ . -- You

Re: Clojure and OOP

2010-02-11 Thread Michael Wood
On 11 February 2010 17:57, John Pall wrote: > can we creat threads in clojure? Yes. Clojure 1.2.0-master-SNAPSHOT user=> (Thread.) # But often you would use an agent or pmap etc. instead of creating explicit threads. -- Michael Wood -- You received this message because you are subscribed t

Re: Clojure and OOP

2010-02-11 Thread Raoul Duke
On Thu, Feb 11, 2010 at 4:46 AM, HB wrote: > Hey, > Since Clojure is a LISP dialect, does this mean that it doesn't > support OOP? > Thanks. http://lambda-the-ultimate.org/node/3465 sincerely. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

Re: Clojure and OOP

2010-02-11 Thread Richard Newman
I suspect that Clojure is actually more suited to OOP than Java, assuming you're going by Dr. Kay's definition. :) Another Kay quote: "I invented Object-Oriented Programming, and C++ is not what I had in mind." -- You received this message because you are subscribed to the Google Groups "Cl

Re: Clojure and OOP

2010-02-11 Thread Tayssir John Gabbour
Hi, On Feb 11, 1:46 pm, HB wrote: > Since Clojure is a LISP dialect, does this mean that it doesn't > support OOP? Careful not to come to the conclusion that if something's a Lisp, it's not OOP. For instance, Common Lisp has a powerful OOP system which includes multiple-inheritance, metaobject p

Re: Clojure and OOP

2010-02-11 Thread .Bill Smith
Instead of getting caught up in whether or not it supports OOP, and how to define OOP, I recommend watching http://www.infoq.com/presentations/Are-We-There-Yet-Rich-Hickey. On Feb 11, 6:46 am, HB wrote: > Hey, > Since Clojure is a LISP dialect, does this mean that it doesn't > support OOP? > Than

Re: Clojure and OOP

2010-02-11 Thread Michał Marczyk
On 11 February 2010 13:46, HB wrote: > Hey, > Since Clojure is a LISP dialect, does this mean that it doesn't > support OOP? > Thanks. Regardless of whether Clojure supports OOP, not supporting it certainly doesn't follow from being a Lisp dialect. Take a look at CLOS (Common Lisp Object System),

Re: Clojure and OOP

2010-02-11 Thread John Pall
can we creat threads in clojure? On Feb 11, 8:11 pm, Laurent PETIT wrote: > The problem is about the overloading of the "object based" expression. > > A step forward could be to recognize that: >  * Java is a weak/simplified version of a class based language > (simplifications made for several we

Re: Clojure and OOP

2010-02-11 Thread Laurent PETIT
The problem is about the overloading of the "object based" expression. A step forward could be to recognize that: * Java is a weak/simplified version of a class based language (simplifications made for several well known reasons: ease of adoption by C/C++ crowd: - algol like syntax-, reduced func

Re: Clojure and OOP

2010-02-11 Thread Jeff Schwab
Joel Westerberg wrote: You can work with java objects. But clojure itself is not object oriented, because it's functional, and object orientation requires state manipulation. By whose definition? Are you saying there is no such thing as an immutable object? Other lisps support object orien

Re: Clojure and OOP

2010-02-11 Thread Joel Westerberg
You can work with java objects. But clojure itself is not object oriented, because it's functional, and object orientation requires state manipulation. Other lisps support object orientation, common-lisp for example. cheers, /J On Thu, Feb 11, 2010 at 1:46 PM, HB wrote: > Hey, > Since Clojure

Re: Clojure and OOP

2010-02-11 Thread James Reeves
On Feb 11, 12:46 pm, HB wrote: > Hey, > Since Clojure is a LISP dialect, does this mean that it doesn't > support OOP? > Thanks. To quote Dr. Alan Kay: "OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. It can be d

Re: Clojure and OOP

2010-02-11 Thread Timothy Pratley
On 11 February 2010 22:46, HB wrote: > Since Clojure is a LISP dialect, does this mean that it doesn't > support OOP? You might find this article interesting: http://blog.thinkrelevance.com/2009/8/12/rifle-oriented-programming-with-clojure-2 And related: http://stackoverflow.com/questions/151785