Arc Forumnew | comments | leaders | submitlogin
1 point by sacado 6096 days ago | link | parent

  (= h (table))
  (= (h '(1 2 3)) 0)
  (= (h (list 1 2 3)) 1)
  h
  ==> #hash(((1 2 3) . 1) ((1 2 3 . nil) . 0))
These are 2 different keys. (h '(1 2 3)) returns 0 and (h (list 1 2 3)) returns 1. To me, it looks like a bug...


4 points by stefano 6096 days ago | link

Const lists (created with quote) are improper scheme list, i.e. they end with nil instead of the emtpy list (in scheme nil != '()), whereas lists created with (list ...) are proper lists (ending with '()). This is certainly a bug.

-----