1 min readMay 5, 2020
Yes sure — you can have a flag which is a constant known at compile-time. As these calls are inlined, they will be also simplified by the compiler. That’s actually the first example in the docs on inline: https://dotty.epfl.ch/docs/reference/metaprogramming/inline.html