4 ms·
I dunno, I definitely find d = {} d[key] = value easier to read/write than (set! d (make-hash-table)) (hash-table-put! d key value)
by klipt 13y ago
I dunno, I definitely find
d = {}
d[key] = value
easier to read/write than
(set! d (make-hash-table))
(hash-table-put! d key value)
- WalterBright 13y agoYes, syntax matters.
- wtetzner 13y agoOn the other hand, I find (define d (make-hash-table)) (hash-table-put! d key1 value1 key2 value2 key3 value3) easier to read than d = {} d[key1] = value1 d[key2] = value2 d[key3] = value3 So syntax matters, but it's not obvious which syntax is best.