Hacker News new | ask | show | jobs
by joshmcmillan 1063 days ago
Ruby 3.2 has `Data.define`, which is an even better way of doing this: https://docs.ruby-lang.org/en/3.2/Data.html
2 comments

Nice, it's attrs/dataclass from Python.
Awesome, thanks for pointing it.