3 ms·
What's un-readable about this ? I haven't even read the article but I can understand this. Probably because of prior experience in C++, Java. But it seems sweet
by lenkite 5y ago
What's un-readable about this ? I haven't even read the article but I can understand this. Probably because of prior experience in C++, Java. But it seems sweet and succint.
At the max, one can make a couple of type-aliases for a bit more legibility, but that's all one can squeeze.
- SergeAx 5y agoI want to mention that Go doesn't have a ternary operator, because it is "used too often to create impenetrably complex expressions"[1] [1] https://go.dev/doc/faq#Does_Go_have_a_ternary_form https://go.dev/doc/faq#Does_Go_have_a_ternary_form