> > What we need is even more defined then that, however, Consider this > snippet from core.match: > > (ns clojure.core.match > (:refer-clojure :exclude [compile]) > (:require [clojure.set :as set]) > (:import [java.io Writer])) > > how do we use metadata to restrict/include java.io.Writer vs CLR's > System.IO.TextWriter? > If I understand what I've seen on cljx page correctly, it's possible to put platform metadata on ns forms (and maybe even on any expression?)
> If we go with the meta-data route, then we're > forced to put ^{:platform :jvm} 40 times in a single file instead of > just putting the code in a different file and not needing to clutter > the code with extra meta-data. > On the other hand, you'd have to create a file even if you want just one platform-specific function. Also, it's probably possible to combine the strengths of the two somehow, e.g. (with-platform :jvm ...). -- 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