egraphs-good / egglog

egraphs + datalog!
https://egraphs-good.github.io/egglog/
MIT License
459 stars 54 forks source link

[Proposal] Disallow shadowing between let bindings and constructors. #329

Open oflatt opened 10 months ago

oflatt commented 10 months ago

I think we should disallow shadowing between let bindings and constructors, since it is a source of confusion.

As a side-effect, generated code will be cleaner when we desugar global let-bindings to use functions instead.

oflatt commented 3 months ago

We've decided to implement this issue