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

Add runtime type modifications #130

Open
ClickerMonkey opened this issue Oct 20, 2020 · 0 comments
Open

Add runtime type modifications #130

ClickerMonkey opened this issue Oct 20, 2020 · 0 comments

Comments

@ClickerMonkey
Copy link
Member

Expressions can refine types, so any following Expressions will see the new type:

So if a type is an optional text, we can use var is defined and if that expression is true it can modify the var type from optional text to text.

The Or expression complicates this, it takes each type modification and converts modifications on the same var to Many.
For example if (x is Text or x is Boolean) { // x is Many<Text | Boolean> }.

Certain expressions have a condition (like If, or the IIF operation) so inside the "true" expression the types are modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant