2 ms·
You get there pretty fast in Ruby with DryStruct; and, Ruby has .freeze, which can also be helpful.
by t-writescode 4y ago
You get there pretty fast in Ruby with DryStruct; and, Ruby has .freeze, which can also be helpful.
- RussianCow 4y agoBut you can't use any libraries that maintain mutable state, which, in Ruby land, is many of them.
- t-writescode 4y agoA common actor strategy for that is to have a dedicated actor for communicating with that mutable state