mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
Apply suggestions from code review
Co-authored-by: Arseny Kapoulkine <arseny.kapoulkine@gmail.com>
This commit is contained in:
parent
9e87d4e081
commit
c130fdcca5
1 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ Speaking of typechecking, we've implemented many improvements this month:
|
||||||
|
|
||||||
We've also added new checks to our linter:
|
We've also added new checks to our linter:
|
||||||
* A new check will report uses of deprecated Roblox APIs
|
* A new check will report uses of deprecated Roblox APIs
|
||||||
* We will warn for global functions that are defined inside local functions
|
* Linter will now suggest replacing globals with locals in more cases
|
||||||
* New warning is generated if array loop starts or ends on index '0', but the array is indexed from '1'
|
* New warning is generated if array loop starts or ends on index '0', but the array is indexed from '1'
|
||||||
* FormatString lint will now check string patterns for `find`/`match` calls via `:` when object type is known to be a string
|
* FormatString lint will now check string patterns for `find`/`match` calls via `:` when object type is known to be a string
|
||||||
|
|
||||||
|
@ -60,9 +60,9 @@ As part of this work we will improve the type information provided by Roblox API
|
||||||
|
|
||||||
## Behavior changes
|
## Behavior changes
|
||||||
|
|
||||||
We've made an improvement for an error message, when a relational comparison fails at runtime, we now specify the comparison direction in the error message (e.g. `attempt to compare nil <= number`)
|
When a relational comparison fails at runtime, the error message now specifies the comparison direction (e.g. `attempt to compare nil <= number`)
|
||||||
|
|
||||||
## Performance improvements
|
## Performance improvements
|
||||||
|
|
||||||
* Improved performance of table lookup with an index operator and a string: `t["name"]`
|
* Improved performance of table lookup with an index operator and a literal string: `t["name"]`
|
||||||
* Bytecode compilation is now ~5% faster which can improve server startup time for games with lots of scripts
|
* Bytecode compilation is now ~5% faster which can improve server startup time for games with lots of scripts
|
||||||
|
|
Loading…
Add table
Reference in a new issue