Question :rename on require should work on squint?
https://squint-cljs.github.io/squint/?src=KHJlcXVpcmUgJ1siaHR0cHM6Ly9lc20uc2gvc25hYmJkb20iIDpyZW5hbWUge2luaXQgaW5pdC1yZW5hbWVkfV0pCihuaWw%2FIGluaXQtcmVuYW1lZCk%3D
I was porting a cljs code base to squint, just for fun and I got a problem with this line:
https://github.com/rafaeldelboni/cljs-threejs-rapier-recast/blob/main/src/app/core.cljs#L4
Maybe it's just me doing something wrong.
fixed in newly released version
I think there are two bugs here. you should currently use refer + rename together. not sure if this is true in clojure?
the other one is that renamed values don't get munged yet, so without the hyphen it should work: https://squint-cljs.github.io/squint/?src=KHJlcXVpcmUgJ1siaHR0cHM6Ly9lc20uc2gvc25hYmJkb20iIDpyZWZlciBbaW5pdF0gOnJlbmFtZSB7aW5pdCBpbml0Mn1dKQoobmlsPyBpbml0Mik%3D
re the first, yes :refer is required in clojure for renamed values
so it's just the munged issue
feel free to post an issue
> I think there are two bugs here. you should currently use refer + rename together. not sure if this is true in clojure? This is working on cljs, but maybe I just used it wrong > feel free to post an issue I will
it doesn't work with JVM clojure
cljs.user=> (require '[clojure.walk :refer [prewalk] :rename {postwalk dude}])
Unexpected error (ExceptionInfo) compiling at (<cljs repl>:1:1).
Renamed symbol postwalk not referred at line 1perhaps it works with shadow-cljs but it probably shouldn't
makes sense