mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Update generalized-iteration.md
This commit is contained in:
parent
37544bffed
commit
4869095e61
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,8 @@ The resulting iteration behavior, while powerful, increases the divergence betwe
|
||||||
|
|
||||||
The changes in insertion behavior that facilitate single iteration order may have a small cost; that said, they are currently understood to belong to paths that are already slow and the added cost is minimal.
|
The changes in insertion behavior that facilitate single iteration order may have a small cost; that said, they are currently understood to belong to paths that are already slow and the added cost is minimal.
|
||||||
|
|
||||||
|
The extra semantics will make inferring the types of the variables in a for loop more difficult - if we know the type of the expression that is being iterated through it probably is not a problem though.
|
||||||
|
|
||||||
## Alternatives
|
## Alternatives
|
||||||
|
|
||||||
Two other major designs have been considered.
|
Two other major designs have been considered.
|
||||||
|
|
Loading…
Add table
Reference in a new issue