top | item 31028768

(no title)

pdkl95 | 3 years ago

While other comments have discussed the technical utility of symbols, I believe symbols can also be seen as useful syntactic sugar that helps communicate intent. Strings used for indexes. named args, and other structural purposes can be represented in a way that is visually distinct from strings used as text.

The technical benefits are nice, but this type of ergonomic feature is why ruby has remained my favorite language for over a decade.

discuss

order

No comments yet.