4 ms·
> The language Elixir, during its compilation phase, actually automatically removes these in the production environment. That is to say, it is a macro which beh
by cmeacham98 5y ago
> The language Elixir, during its compilation phase, actually automatically removes these in the production environment. That is to say, it is a macro which behaves as expected in every environment but "prod", in which case it removes itself.
I mean, you can do this in C too. Make "debug" an #ifdef, and when it is defined to "false" the compiler will obviously optimize that out.
- pmarreck 5y agoRight.