Hacker News new | ask | show | jobs
by justincormack 1256 days ago
Lua (and some other languages) intern strings, so all strings that are the same point to the same string instance. This gives the same benefits (plus string equality is just pointer equality) without a different type.