mach icon indicating copy to clipboard operation
mach copied to clipboard

Use of reader literal ref unintuitive

Open jonpither opened this issue 8 years ago • 1 comments

When I use the ref literal pointing at the result of a ClojureScript expression, it doesn't work as expected. For example, what should happen in the below case:

{
config (aero.core/read-config "config.edn" {})
foo (println #ref [config :some-item])
}

Even if some-item exists in the config, the above will not print it out. This is because resolve-references happens against uneval'ed code.

Makes me think resolve-references is happening at an incorrect stage?

jonpither avatar Apr 08 '17 11:04 jonpither

This requires #ref to be factored into the topological sorting system. See aero for how this can be done. It's quite complicated.

SevereOverfl0w avatar May 12 '17 20:05 SevereOverfl0w