On Feb 25, 6:51 pm, Rich Hickey <richhic...@gmail.com> wrote:


> user=> (type #^{:type ::Fred} [1 2 3])
> :user/Fred

This is extremely appealing, as David said, for those of us building
type systems for our application data.

There's one wart for my particular use:

(binding [*print-dup* true]
        (prn-str #^{:type ::Fred} [1 2 3]))

java.lang.StackOverflowError (NO_SOURCE_FILE:0)
  [Thrown class clojure.lang.Compiler$CompilerException]


Oops. Can't serialize an object with attached metadata.


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