2 ms·
> It so much better when you go to practically any Go repository and find that code is readable and clear. I've never had this experience with any other languag
by junke 10y ago
> It so much better when you go to practically any Go repository and find that code is readable and clear. I've never had this experience with any other language before.
What languages did you have to endure before?
> Found one of the real examples of abusing ternary operators.
Yeah, the original code is silly, the binary search trees are not always balanced. They should be more like:
if (type <= 10) ? (if (type <= 5) ? ... : ...) : if (type <= 7) ? ... : ...