3 ms·
Another couple important aspects of symbols: 1. They refer to the same object in memory, so multiple usages of a symbol by the same name (e.g. `:param`) not no
by d4mi3n 1y ago
Another couple important aspects of symbols:
1. They refer to the same object in memory, so multiple usages of a symbol by the same name (e.g. `:param`) not not add additional memory overhead.
2. Symbols are also immutable in that they cannot be mutated in any way once they are referenced/created.
These properties can be useful in some contexts, but in practice they're effectively used as immutable constant values.