Your examples are very good I think. It always helps to have a
straight-forward conversion from one language to another for
beginners. They will eventually pick up idioms and methodology by
playing around.

One comparison that bothers me though is this:

(not= (new Exception) (new Exception))
Again, Clojure works just like Python.  Two distinct objects are not
equal.

This is not strictly true. (new Exception) is not equal to (new
Exception) because equals() is defined as being an identity
comparison. Other classes define equals() differently.

eg. (not= (new Integer 2) (new Integer 2))

 -Patrick
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to