sweet-js / sweet-core

Sweeten your JavaScript.
https://www.sweetjs.org
BSD 2-Clause "Simplified" License
4.58k stars 208 forks source link

Not renaming variables inside parens #755

Open matiasmorant opened 5 years ago

matiasmorant commented 5 years ago

x => (x) compiles to x_34 => (x) rather than x_34 => (x_34). On the other hand, x => x compiles correctly to x_34 => x_34

vrunhofen commented 1 year ago

why are variable names renamed in the first place? Is there a way to disable this behavior?

vendethiel commented 1 year ago

For Hygiene.

vrunhofen commented 1 year ago

Is there any way to turn this off? 

I’m using macros interactively in a REPL. And variables I define end up with suffixes and then I can’t call them later again without the suffixes when I evaluate more code. 

If I define x, and later need it, I have to go back and find what it was replaced with and use something like x_36 in my (now failing) code.