On Thu, Aug 19, 2010 at 3:36 AM, Tim Daly <d...@axiom-developer.org> wrote:

> Televisions vs Monitors.....
>

This is the whole point of deftype/defrecord and protocols. To get the
absolute best performance of the platform without having the pollute your
code with type information. For example prior to 1.2 I had to use
javax.vecmath.Vector2D and litter my functions with type-hints. Now I can
just use a library like cantor (http://github.com/ztellman/cantor), get the
exact same perf, and not have to think about putting type information
anywhere.


> One thing that lisp got absolutely right is the unification of the symbol
> nil, the empty list (), and the boolean "false". Clojure seems to have
> waffled on this point and I think it will cause grief in subtle places.


nil, the empty list, and boolean false are not equal, because they simply
aren't. I haven't seen many cases where this is a problem in practice.

(doall (map inc nil))
(doall (map inc []))

-- 
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