Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesign variable bindings #189

Open
KacperFKorban opened this issue Jul 14, 2021 · 0 comments
Open

Redesign variable bindings #189

KacperFKorban opened this issue Jul 14, 2021 · 0 comments
Labels
scala3 Related to scala 3 engine

Comments

@KacperFKorban
Copy link
Member

Variable bindings should be redesigned. ATM our bindings work in a specific way and map any bound B on variable A to logical condition A =:= B. This is not enough.

The easiest solution would be to make it work in a similar way the compiler does this:
Remember the type of bound and for every variable have a low and high bound.

Things to consider before/during the implementation:

  • Performance may be an issue since we have to evaluate more complicated checks.
  • This problem is IMHO nontrivial. e.g. Case of a bound depending on another type variable.
@KacperFKorban KacperFKorban added the scala3 Related to scala 3 engine label Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scala3 Related to scala 3 engine
Projects
None yet
Development

No branches or pull requests

1 participant