[erlang-questions] Compiler and tautologies

Adam Lindberg <>
Thu Mar 19 08:55:28 CET 2009


Does the Erlang compiler optimize code such as:

f() -> case true of true -> ok end.

To this?

f() -> ok.

I'm working with Erlang code generation in a customer's product and I wonder if I need to optimize away such code myself or not.


More information about the erlang-questions mailing list