Aaron Cohen <aa...@assonance.org> writes:

> I think all your concerns can be addressed by carefully using the
> metadata solution?
>
> ^{:platform :jvm} (load "jvm/lib")
> ^{:platform :python} (load "python/lib")

But why would that be better than a reader macro

  #+:jvm    (load "jvm/lib")
  #+:python (load "python/lib")

or a usual macro?  IMO, metadata is good for metainformation that
someone (a human, the compiler) wants to access later, not for
consumption by the lisp reader.  Or would the non-matching forms still
be read but not compiled afterwards?  In that case, you get problems
with

  ^{:platform :jvm} 1
  ^{:platform :python} 0

because metadata cannot be attached to numbers.

Bye,
Tassilo

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