Details
-
Type:
Enhancement
-
Status:
Closed
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Release 1.3
-
Component/s: None
-
Labels:None
-
Approval:Ok
Description
I need a non-interning keyword lookup function. This is the much delayed patch discussed way back, see this discussion:
http://groups.google.com/group/clojure-dev/browse_thread/thread/670ab284e86e17fa/22f3ba493a93db8c?lnk=gst&q=keyword+lookup#22f3ba493a93db8c
Attached is a proposed patch to implement this. It's different from the patch in the above thread in three main ways: it's against a current branch, it includes a clojure wrapper (find-keyword), and it uses the name find in the keyword class instead of lookup.
It's currently interning symbols, which I'm not sure about. It might be better to have the keys of the keyword table be strings instead of symbols, but that's a more intrusive change. Also, the find-keyword function is in core, which I'm not sure is the right place for it either.
Converted from http://www.assembla.com/spaces/clojure/tickets/276
Attachments:
keyword.diff - https://www.assembla.com/spaces/clojure/documents/aV_9dsiJKr37FaeJe5afGb/download/aV_9dsiJKr37FaeJe5afGb
0276-non-interning-keyword-plus-tests.patch - https://www.assembla.com/spaces/clojure/documents/cX8wGA1uer36T_eJe5cbLr/download/cX8wGA1uer36T_eJe5cbLr