3 ms·
hashmap's a collection type, record/struct is a product type (tuple is another product type), many miss the sum type (incl JSON) sadly. JS conflating the hashm
by cies 4y ago
hashmap's a collection type, record/struct is a product type (tuple is another product type), many miss the sum type (incl JSON) sadly.
JS conflating the hashmap and record/struct is a big loss, probably fixed by TS. it does show JS's dedication to its radical dynamic typing discipline (or lack thereof).