|
|
|
|
|
by matheusmoreira
1534 days ago
|
|
String equality is linear time in the worst case. Symbol equality is constant time. Symbols are strings that act like numeric constants. They're extremely useful in APIs as arguments, return values and generalized tokens. They're also the obvious choice for hash table keys. |
|