Arcadia icon indicating copy to clipboard operation
Arcadia copied to clipboard

reader conditional extension for editor/build targets

Open selfsame opened this issue 9 years ago • 3 comments

extend arcadia's reader conditional clauses to include :editor and the build targets (https://github.com/arcadia-unity/Arcadia/blob/develop/Helpers/UnityStatusHelper.cs)

selfsame avatar Mar 11 '17 22:03 selfsame

@nasser what's the what on this?

timsgardner avatar Mar 14 '17 19:03 timsgardner

There's a possibility of using Clojure 1.8's reader conditionals to exclude code from export via

#?(:arcadia/editor (editor only expression))

nasser avatar Mar 14 '17 19:03 nasser

One (possibly paranoid) worry is that this might break something on the tooling side, or down the line on the compiler level for ClojureJVM/ClojureScript. I remember hearing the reader dispatch system is intentionally not open, so we should make sure adding stuff to it doesn't screw up some important part of the existing ecosystem in a weird way.

timsgardner avatar May 31 '18 21:05 timsgardner