News for hackers. Stuff that matters.
Re:Why Ruby Has Symbols by crickcreek on Thursday April 14, 2022 @08:09PM (#31035128)
A symbol is your string applied as the argument to an algorhtym that returns a deterministic interger. The interger is smaller and easier to sort and compare, making many common operations more efficient.

--andrew

There are no comments on this comment yet.