tact-lang / tact

Tact compiler main repository
https://tact-lang.org
MIT License
371 stars 103 forks source link

Allow underscores as unused variable identifiers #319

Closed anton-trunov closed 3 months ago

anton-trunov commented 4 months ago

Code like this should compile:

let size: Int = 0;
foreach (_, _ in map) {
    size += 1;
}
Gusarich commented 4 months ago

and the _ id in this case should not be resolved, right?

anton-trunov commented 4 months ago

and the _ id in this case should not be resolved, right?

yep, this is correct