These are chat archives for dry-rb/chat
Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
1.0.0.beta1check it out https://github.com/dry-rb/dry-monads/blob/master/CHANGELOG.md I'll be polishing rough edges left, if any
Do, it's hot
Eitherrather than just :bomb: it?
regionhas an array of
slotsbut instead of slots being held in a basic array, could I use some other kind of collection class? SlotSet can be implemented however, I just need some custom behaviour for managing a collection of slots but and that behaviour doesn't really make sense to put it in the region class if I don't have to.
class Region < Dry::Struct attribute :slots, SlotSet end class SlotSet < Dry::Struct attribute :slots, Types::Array.of(Slot) end class Slot # ... some attributes end