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

It's because people started putting "always use strings.Compare" in their style guides.


Even if strings.Compare is optimized, it is not always better than general comparison operators.

Both strings.Compare and comparison operators have their respective best use scenarios.




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

Search: