|
|
|
|
|
by mc4ndr3
1534 days ago
|
|
They're like enums but without the risk of colliding across unrelated contexts. And because they're dynamically generated you can have runaway symbol generation that triggers a memory consumption problem. Newbies try to use strings as enums, because they don't understand enums. Symbols provide tradeoffs compared with both. This is what you get with a dynamic language where people try to overload functions with "I accept a scalar OR an array!!!" |
|