I propose we make a simple change where attributes are stored as a hash instead of as an array of triplets.
The main purpose served here is ease of iteration of the collection of attributes and their properties. In adding :cardinality/many I'm finding the need to write really nasty code just to iterate over the set of attributes and I believe my code would be made a lot more clear by storing/accessing attributes as a hash instead of an array.
I propose we make a simple change where attributes are stored as a hash instead of as an array of triplets.
The main purpose served here is ease of iteration of the collection of attributes and their properties. In adding
:cardinality/many
I'm finding the need to write really nasty code just to iterate over the set of attributes and I believe my code would be made a lot more clear by storing/accessing attributes as a hash instead of an array.