Open jasom opened 8 years ago
Yes, this sounds reasonable. I'll add this in the next update. Also, patches are welcome :)
Unfortunately, I think this is not possible unless we break API. One counter example is
(let ((accessor (lambda (ht) (gethash :a ht))))
(? #h(accessor 0 :a 1) accessor))
If the it works in the new semantics, it should return 1
. However, in the old semantics it returns 0
.
I suggest to close this issue.
From your blog post:
given that the preferred method is with an accessor, why not allow something like:
(? obj #'accessor-fn)