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
The purpose of unconstrained functions is to allow non-deterministic features, most notably arrays of unknown (at compile-time) length and loops over unknown bounds. Yet, this is currently disallowed by the type checker.
Proposed solution
Relax the comptime Field check in the typechecker for for loop ranges to just Field if we are currently inside an unconstrained function.
Alternatives considered
No response
Additional context
No response
Submission Checklist
Once I hit submit, I will assign this issue to the Project Board with the appropriate tags.
The text was updated successfully, but these errors were encountered:
Problem
The purpose of unconstrained functions is to allow non-deterministic features, most notably arrays of unknown (at compile-time) length and loops over unknown bounds. Yet, this is currently disallowed by the type checker.
Proposed solution
Relax the
comptime Field
check in the typechecker for for loop ranges to justField
if we are currently inside an unconstrained function.Alternatives considered
No response
Additional context
No response
Submission Checklist
The text was updated successfully, but these errors were encountered: