5 ms·
Won't tagbody/go with an array of symbols work for jump tables (assuming GO is O(1)?): (tagbody (go (aref #(a b c d) N)) a ... b
by aidenn0 7y ago
Won't tagbody/go with an array of symbols work for jump tables (assuming GO is O(1)?):
(tagbody
(go (aref #(a b c d) N))
a
...
b
...
c
...
d))
- ScottBurson 7y agoAlas, no; 'go' is a special form — its argument is unevaluated.
- aidenn0 7y agoIndeed it appears so. Strangely enough, the hyperspec doesn't specify that it's not evaluated.
- dan-robertson 7y agoFor special forms I think it’s implied that the arguments aren’t evaluated (as they are special) unless stated otherwise.
- aidenn0 7y agoAt least some forms say explicitly evaluated or not.