Do you see any substantial difference between the two pieces of code below?
(if 2 3)
(def x (if 2 3))
They seem to be quite the same, so you’d expect their js transpiled code to be the same.
Let’s check it with KLIPSE:
(if 2 3) (def x (if 2 3))
Do you see what’s going on here?
Code #1 is completely dead code no matter what code will come after it. Therefore it has been completly eliminated by the cljs transpiler!
Feel free to continue to play with dead code with KLIPSE.