Remind me, is dead code elimination possible with anything other than boolean values? e.g. a string? It seems like it’s not but just want to double check it’s not just by inability 😅
it is in general but not when using =
or so since that uses cljs.core/truth?
, identical?
should work
@martinklepsch If you are referring to DCE driven by :closure-defines
this has a bit of info on the subject: https://clojurescript.org/reference/compiler-options#closure-defines
@mfikes thanks! I tried with case
but hadn’t considered cond
+ identical?