You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loops and Indexes should be limited to u32 types once type casting is in.
Motivation
As seen in #905, our type inference system is not symmetrical in all cases.
The reasoning to wait for typecasting is to cast the iterator part of a loop to your desired type.
If we want more types allowed in the future, we can redo the type inference algorithm, but that's more work and would be another feature.
Implementation
Just simply restrict allowed types.
The text was updated successfully, but these errors were encountered:
🚀 Feature
Loops and Indexes should be limited to u32 types once type casting is in.
Motivation
As seen in #905, our type inference system is not symmetrical in all cases.
The reasoning to wait for typecasting is to cast the iterator part of a loop to your desired type.
If we want more types allowed in the future, we can redo the type inference algorithm, but that's more work and would be another feature.
Implementation
Just simply restrict allowed types.
The text was updated successfully, but these errors were encountered: