mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Remove confusing language
This commit is contained in:
parent
0b4c57a4e5
commit
51a05ee5b0
1 changed files with 0 additions and 2 deletions
|
@ -14,8 +14,6 @@ When debugging, it is often useful to compare identity. Usually `print` will pri
|
||||||
|
|
||||||
`debug.id(value: string | userdata | table | thread | function): string` always returns the identifier unique to that value, and is not possible to override. The identifier can be reused after the value associated with it is garbage collected.
|
`debug.id(value: string | userdata | table | thread | function): string` always returns the identifier unique to that value, and is not possible to override. The identifier can be reused after the value associated with it is garbage collected.
|
||||||
|
|
||||||
While tables and userdata have individualized metatables, also allowing functions and threads to be passed to `debug.id` would let their type-level `__tostring` be redefined. Strings are useful to accept because of long, similar strings.
|
|
||||||
|
|
||||||
## Drawbacks
|
## Drawbacks
|
||||||
|
|
||||||
Identifiers being reused has the potential to confuse humans reading them.
|
Identifiers being reused has the potential to confuse humans reading them.
|
||||||
|
|
Loading…
Add table
Reference in a new issue