|
|
|
|
|
by bigtunacan
4274 days ago
|
|
Symbols are not a syntactic issue. They are an optimization issue. They do not have the creation overhead of objects and they exist across the application in memory without the lookup overhead of a constant (PHP's closest cousin to a symbol). Lisp, Erlang, and Prolog (sure some other languages I've missed) have direct equivalents to Ruby symbols; they are sometimes referred to as symbols other times as atoms. Saying they are a trivial syntactic issue just means you don't understand what symbols are. |
|