Comment made by: aralo
In my example I have a macro that matches routes. Since they're static this can be optimized during compile time:
(condp route-match? x [:comments :view] 1 [:posts :edit] 2 [_ :delete] 3)
Would also provide a faster assoc for records
which generates a condp
with identical
.