LispMechanics / cl-data-structures

MIT License
4 stars 11 forks source link

Design: Separate functional and mutable structures #2

Open sirherrbatka opened 7 years ago

sirherrbatka commented 7 years ago

We need to have some distinction between functional nad mutable variants of structures. I propose to add mixin types: functional-structure and mutable-structure. Implementations should inherit those and offer part of the functionality depending on the type. For instance, mutable-hash-table should offer only insert! method, while functional-hash-table should offer only insert method.