Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)


On 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.


Yes, syntax matters.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: