+ 4
Symbols are immutable strings, and this derives their significance over strings. Every time a string is written, it creates a new object with a new place in memory, even if the string is textually identical to an existing string. However, since symbols are immutable, they always refer to the same object and the same place in memory.
14th Jan 2022, 4:57 AM
ShadowCipher
ShadowCipher - avatar