Comment on Clojure to die forparentComments−Tuna-Fish12yIf you use clojure.typed, I think the second example would give you a compile-time type error.−tobik12yWhile true, the second example already gives you a compile-time error in normal Clojure (note the CompilerException). It never compiled and was never evaluated. This on the other hand compiles and is likely what the OP wanted to show: user> (let [e nil] (e :key)) NullPointerException
Comments
If you use clojure.typed, I think the second example would give you a compile-time type error.
While true, the second example already gives you a compile-time error in normal Clojure (note the CompilerException). It never compiled and was never evaluated. This on the other hand compiles and is likely what the OP wanted to show: