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

it's simple to write ONCE you understand and learn the idiomatic code.

some people call not having native string/int/whatever sorting methods is "hard to write".

some people think the verbose `if err != nil` every other line is also "hard to write"

again, there is an upstart cost, which is to integrate yourself into the language community.



Golang does have a few simple types sorting functions such as string and int https://golang.org/pkg/sort/#Strings. Now that generics will be out, could we even have generic sort functions ?




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

Search: