2 ms·
Why not? It's expression oriented and as such seems to be a good way to write it.
by kzrdude 4y ago
Why not? It's expression oriented and as such seems to be a good way to write it.
- yxhuvud 4y agoUh, because it is just syntax sugar for an if-statement. And those are typically implemented using branches. There may be possible optimizations to make them branchfree in certain cases, but it is certainly not something I'd assume would be the default.