The values returned by `make-custom-hash-types` and `make-custom-set-types` have a different order. Change one of them to improve consistency.
@gus-massa
The values returned by make-custom-hash-types and make-custom-set-types have a different order. Change one of them to improve consistency.
Oh, another thing that is inconsistent between hash and set is the constructors:
For sets, we have: set (which is immutable), mutable-set, weak-set.
For hash maps, we have: hash (which is immutable), make-hash, make-immutable-hash, make-weak-hash.
Cross-ref: #49
I am not sure if this fits best here, but I have several times hit the issue with making hashes with hash vs make-hash:
-
(hash key1 value1 key2 value2 ...)vs -
(make-has (list (cons key1 value1) (cons key2 value2)))
I don't see a reason why hash and make-hash take arguments in different orders. Maybe related to #10, but probably complementary to it.