Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



I 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: