I've lost count of how many times I've broken production because of ClojureScript's advanced compilation and use of the dot + dash (.-) JS property access operator.
My advice: Never use .-
I've lost count of how many times I've broken production because of ClojureScript's advanced compilation and use of the dot + dash (.-) JS property access operator.
My advice: Never use .-
@Ardubal Yeah indeed, kinda obvious but at the same time unusual.
What I don't know is if there's order dependency, I mean, what happens if the compiler compiles `my-fn-2` first? Will it mangle `.-something`? Or is there separate analysis phase where the compiler first checks which names should not be mangled? 🤷
I can't remember if I've ever bumped into this. But then again I don't use it that much (e.g., 31 instances in 16137 lines of code). Shadow-CLJS + advanced here. Maybe there's some difference in approach.