flow icon indicating copy to clipboard operation
flow copied to clipboard

Support for inline JS macro expansions

Open jarohen opened this issue 11 years ago • 1 comments

It's having trouble with macros that expand to inline JS ( (js* ...) ) - need to handle this explicity.

This is a pretty important fix - (and ...) and (or ...) both expand to this.

jarohen avatar Nov 25 '14 15:11 jarohen

These seem to work. but sometimes (i.e. I can't figure out why) these leave warnings about undeclared vars that aren't actually undeclared.

e.g.

(f/el
  (let [a 2]
    (when (= a 2)
      ...)))

doesn't warn, but

(f/el
  (let [a 2]
    (when (and (= a 2)
               (= 4 4))
      ...)))

does. It then goes on to work at run-time.

Strange.

jarohen avatar Dec 01 '14 19:12 jarohen