2 ms·
I don't understand this meme I see from go folks that ternery is hard to understand. From my perspective it's much more straightforward than a bundle of ifs and
by __david__ 9y ago
I don't understand this meme I see from go folks that ternery is hard to understand. From my perspective it's much more straightforward than a bundle of ifs and variable definitions. With go I have to look at a jumble of lines and decompile it in my head back into the original intention (what's all this? Oh that's just a ternery). Practically every language had a ternery (even python!), and there's really no reason for Go to skip out on an obvious and useful abstraction.