zksecurity / noname

Noname: a programming language to write zkapps
https://zksecurity.github.io/noname/
161 stars 35 forks source link

feat(types): impl `PartialEq` and `Hash` for `Ident` instead of `ModulePath` #108

Closed eightfilms closed 1 month ago

eightfilms commented 1 month ago

Extracted from #100

This follows the original implementation. 2 Idents should be equal if their values are equal, even if their Spans are different. This also includes manually implementing Hash to allow for this.