|
|
|
|
|
by masklinn
1266 days ago
|
|
Because in most languages they're not useful. Symbols are solutions to problems, some of which are: 1. mutable strings (ruby) 2. and / or expensive strings (erlang, also non-global) If you have immutable "dense" strings and interning, and you automatically intern program symbols (identifiers, string literals, etc...) then symbols give you very little. And then there's the slightly brain damaged like javascript, where symbols are basically a way to get some level of namespacing to work around the dark years of ubiquitous ad-hoc expansions so you're completely stuck unable to add new program symbols to existing types because you could break any page out there doing something stupid. |
|
I haven't written ruby (or any lisps) for awhile, and I miss symbols.