ursalang / ursa

A friendly, stable general-purpose programming language
https://ursalang.github.io
3 stars 1 forks source link

Hidden variables pollute Ursa namespace #64

Closed apt1002 closed 2 months ago

apt1002 commented 2 months ago

When compiling e.g.

for i of my_range(5) { print(i) }

The compiler outputs

let _for = ArkUndefined;

but _for is a valid Ursa identifier. Use $for instead, or better, $iter.