5 ms·
I can see why this was added, but I don't see myself using it anytime soon. If I just need a bundle of attributes and don't care about immutability then I will
by bigtunacan 4y ago
I can see why this was added, but I don't see myself using it anytime soon.
If I just need a bundle of attributes and don't care about immutability then I will continue to use Struct.
If I do need immutability I will continue to use dry-struct (https://dry-rb.org/gems/dry-struct/1.0/ https://dry-rb.org/gems/dry-struct/1.0/) which has much deeper guarantees of immutability and type enforcement.
- sacnoradhq 4y agoConcurrent::ImmutableStruct is thread-safe and tested. Dry is cute, but too new.
- bhaak 4y ago5 years old is too new? concurrent-ruby is only 3 years older.
- bigtunacan 4y agoDry is mature and has additional support for Monads, thread safe containers, schemas. I'm leveraging more than just struct from Dry.