From 568a6fc49ab33e53008ec2ff49b0dc826ecc3bc0 Mon Sep 17 00:00:00 2001 From: Simon Cambier Date: Sat, 17 Jan 2026 10:48:48 +0100 Subject: [PATCH] readme --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index cad624f..f77530d 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,11 @@ Most of the _G.d.ts file has been AI-generated from the official documentation, > TypeScript code converted to Lua code is not guaranteed to be correct or efficient. > Read the [TypeScriptToLua documentation](https://typescripttolua.github.io/docs/getting-started), follow best practices, and review the generated Lua code. +> [!TIP] +> Several Picotron idiomatic functions can (and should) be used instead of their TypeScript counterparts. +> e.g. use `error()` instead of `throw new Error()`, or `deli()` instead of `array.splice()` to delete single items. +> This will improve the performance and reduce the size of the generated Lua code. + ## Setup ### Requirements