At the very least there should be nice functions to call to convert
back and forth explicitly, if automatic conversion is out and a reader
macro will only work for compile time constants. So one could use
@@the-structure for constants, and (to-js the-structure) for anything
else, or something of the sort. Or is such a function already there,
but considered annoying enough to want to be able to hide it in
implicit conversions or short, pithy reader macros? Of course, in the
latter case, a reader macro that expands to the function call could
work on non-constants, though, as @foo already expands to (deref foo)
in normal Clojure and does not require foo to be a compile time
constant.
--
Protege: What is this seething mass of parentheses?!
Master: Your father's Lisp REPL. This is the language of a true
hacker. Not as clumsy or random as C++; a language for a more
civilized age.