On Fri, May 13, 2011 at 4:18 AM, Antony Blakey <antony.bla...@gmail.com>wrote:
> > On 13/05/2011, at 2:21 PM, David Nolen wrote: > > > - instance? or custom predicate matches done w/ if > > I did quite a bit of this in the context of a Smalltalk implementation. One > of the key features is fast type testing. I note in your example case you > are relying on an id generic to provide the type tags that are > type-hierarchy aware. After some tests I've since given up this approach. We'll use instance? directly. During development we'll use case + class names. This solves the dynamic deftype/record definition problem. This has limitations as names are not unique in a complex class loader situation, something I don't care so much about, but other people might and may have better ideas. In AOT compiled code we'll assume the class hierarchy is stable since we can't do any better than what deftype/record guarantee - in this case we'll use if + actually classes in the instance? tests. David -- 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