4 ms·
> and requires introducing another stack frame for no good reason With a given implementation or is there something in the Go specification that prevents this
by randomdata 9y ago
> and requires introducing another stack frame for no good reason
With a given implementation or is there something in the Go specification that prevents this from being compiled away? If I were to write something similar in, say, C++ with a good compiler I would expect the generated code to be equivalent to using a ternary operator.