Cool idea: define a function conditionally. Even more powerful than traits

It’ll be strictly no slower to write that since that’s what the code should be turned into in the best case.

2 Likes