/
Immutable Strings

Immutable Strings

When we have string variables in Lua and Javacript they are implemented as “immutable strings”. This means that a string is never modified - if we ‘modify’ a string - we really copying it and making a new one.

https://stackoverflow.com/questions/8798403/string-is-immutable-what-exactly-is-the-meaning

Related content

Variables
More like this
Trimming white space
Trimming white space
More like this
Variable Scope
Variable Scope
More like this
The core eight types in Lua.
The core eight types in Lua.
More like this
Javascript Closure
Javascript Closure
More like this
Lua
More like this