tokay-lang / tokay

Tokay is a programming language designed for ad-hoc parsing, inspired by awk.
https://tokay.dev
MIT License
236 stars 7 forks source link

Using RefValue as keys for dicts #96

Closed phorward closed 1 year ago

phorward commented 1 year ago

Currently, Tokay implements dict as IndexMap<String, RefValue>.

This pull request should change it to IndexMap<RefValue, RefValue> with the important difference, that mutable objects may not be used as keys.

It should be the solution for #79.

Todo:

phorward commented 1 year ago

IMHO this PR is ready for merge. Further improvements follow.