[erlang-questions] Compiler and tautologies

Adam Lindberg adam@REDACTED
Thu Mar 19 08:55:28 CET 2009


Hi!

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.


Cheers,
Adam



More information about the erlang-questions mailing list