From a6c9a062371edbc9b3214a8c4435b8f92ee9e0f5 Mon Sep 17 00:00:00 2001 From: Qualadore Date: Sat, 1 Jul 2023 17:33:05 +0000 Subject: [PATCH] Add return type --- rfcs/function-debug-id.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfcs/function-debug-id.md b/rfcs/function-debug-id.md index a70c3319..5f0cf23e 100644 --- a/rfcs/function-debug-id.md +++ b/rfcs/function-debug-id.md @@ -12,7 +12,7 @@ When debugging, it is often useful to compare identity. Usually `print` will pri ## Design -`debug.id(value: any)` always returns the identifier unique to that value, and is not possible to override. +`debug.id(value: any): number` always returns the identifier unique to that value, and is not possible to override. 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.