squint

Jonas Östlund 2025-04-04T14:11:25.835589Z

Hi! Not sure this is a good idea but I implemented binding macro for Squint: https://github.com/squint-cljs/squint/pull/646

Jonas Östlund 2025-04-04T14:19:33.888069Z

The reason why I am hesitant about whether this is a good idea or not to include in Squint is that JavaScript doesn't have a concept of a variable being dynamic. Also, maybe with-redefs would be a better name for this kind of macro? Not sure.

borkdude 2025-04-04T14:38:00.379199Z

A big caveat with binding and ES6 modules is that it only works within one and the same module, since you can't alter "vars" from other modules. This is why I haven't included it in squint (yet).

Jonas Östlund 2025-04-04T14:39:56.828569Z

Oh, I see, thanks for the clarification! I will close the PR for now.