mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-05 19:11:00 +01:00
Nope that's ambiguous
This commit is contained in:
parent
b1e00d1eb9
commit
d49d29f73a
1 changed files with 0 additions and 10 deletions
|
@ -231,16 +231,6 @@ The `until` token was considered. This is not ambiguous, but was discarded for n
|
|||
local foo = bar[1 until 3]
|
||||
```
|
||||
|
||||
However, `until` could plausibly be implemented as its own operator since it is used by almost nothing else. The utility of this is questionable but it is interesting.
|
||||
|
||||
```Lua
|
||||
local one, two, three = 1 until 3
|
||||
|
||||
for numbers in {1 until 3} do
|
||||
-- ...
|
||||
end
|
||||
```
|
||||
|
||||
The `..` token was considered. However, this was discarded because it would be ambiguous with string concatenation.
|
||||
|
||||
```Lua
|
||||
|
|
Loading…
Add table
Reference in a new issue