Update syntax-multiple-index.md

This commit is contained in:
Daniel P H Fox (Roblox) 2025-01-25 16:20:30 -08:00 committed by GitHub
parent 4dccd2ca12
commit e473d5d825
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -285,7 +285,7 @@ There is nothing functionally wrong with this, so the proposal doesn't discard t
Renaming identifiers was considered with implicit keys, and should be possible with full backwards compatibility, and support for arbitrary expressions. Renaming identifiers was considered with implicit keys, and should be possible with full backwards compatibility, and support for arbitrary expressions.
```Lua ```Lua
amelia in "amy", beth in "bethany", carol in "caroline" = nicknames[] amy in "amelia", beth in "bethany", carol in "caroline" = nicknames[]
``` ```
Notably, this would allow the use of implicit keys with only some keys renamed, useful for avoiding namespace collisions: Notably, this would allow the use of implicit keys with only some keys renamed, useful for avoiding namespace collisions:
@ -379,4 +379,4 @@ Today in Roblox, every index doubly works with camel case, such as `part.positio
local { .position } = Workspace:Raycast(etc) local { .position } = Workspace:Raycast(etc)
``` ```
...which would work as you expect, but rely on this deprecated style. ...which would work as you expect, but rely on this deprecated style.