squint 2025-05-22

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

❤️ 1

I think there are two bugs here. you should currently use refer + rename together. not sure if this is true in clojure?

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

👍 1

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 1

perhaps it works with shadow-cljs but it probably shouldn't

makes sense