Hacker News new | ask | show | jobs
by nauticacom 1631 days ago
This isn't true; Ruby has no set literal. Sets are provided by a default gem but there is no built-in syntax for them.
1 comments

Sorry I found this page on Google but did not read the note on top. Looks like it was a proposed feature but was not implemented.

https://dev.to/baweaver/ruby-3-set-literal-3fp9