A common pattern while using 'case' is to set a temporary var using 'let'.(let [lst '(1 2)]
(case lst
vector? (println "Vector : " lst )
list? (println "A list : " lst )
(println "Something else")))
Can we not have a case without a let like this :
(case [lst '(1 2)]
vector? (println "Vector : " lst )
list? (println "A list : " lst )
(println "Something else")))
Can you think of a scenario where this can be a conflict?
Please do suggest if you think it is a good/bad idea.
I think it would a a nice syntactic convenience.