Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

binding treated as serial #420

Closed
mfikes opened this issue Jul 23, 2018 · 3 comments · Fixed by #434
Closed

binding treated as serial #420

mfikes opened this issue Jul 23, 2018 · 3 comments · Fixed by #434

Comments

@mfikes
Copy link
Collaborator

mfikes commented Jul 23, 2018

There is a bit of code here that binds env/*compiler* to st and then uses env/*compiler* on the subsequent line.

env/*compiler* st
r/*data-readers* (merge tags/*cljs-data-readers* (load-data-readers! env/*compiler*))

Binding is actually supposed to be done in parallel (see https://dev.clojure.org/jira/browse/CLJS-2541) so to make the above code correct would simply involve not making use of env/*compiler* in that subsequent line, but using st.

There is a similar pattern involving env/*compiler* and st later on in the file.

@anmonteiro
Copy link
Owner

Have you fixed this in Planck? Is there a commit I can steal? :)

@mfikes
Copy link
Collaborator Author

mfikes commented Sep 18, 2018

I think I noticed this when stealing code from Lumo to do planck-repl/planck@5b45533 but I don't recall why Planck didn't end up with the same code.

@mfikes
Copy link
Collaborator Author

mfikes commented Sep 18, 2018

But, I think the fix is simply revising the referenced code from

  env/*compiler* st 
  r/*data-readers* (merge tags/*cljs-data-readers* (load-data-readers! env/*compiler*)) 

to

  env/*compiler* st 
  r/*data-readers* (merge tags/*cljs-data-readers* (load-data-readers! st)) 

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants