mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-05 02:50:59 +01:00
Remove value based language
This commit is contained in:
parent
b400c9f4c9
commit
a5b158dfd6
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ Allow `table.clone` to copy tables with locked metatables.
|
|||
## Motivation
|
||||
|
||||
As proposed by the [`table.clone` RFC](function-table-clone.md), the function `table.clone` cannot create shallow copies of a table if it has a locked metatable.
|
||||
Due to this ugly limitation, it is extremely un-ergonomic to create shallow copies of arbitrary tables.
|
||||
Due to this limitation, it is very un-ergonomic to create shallow copies of arbitrary tables.
|
||||
The current behavior of using `table.clone` on a table with a locked metatable is a hard-fail approach where `table.clone` spits out an error instead of having a soft-fail approach wherein a clone is generated without a metatable.
|
||||
This hard-fail approach severely hinders the usefulness of `table.clone` due to in practice users having to re-implement the function in many scenarios.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue