Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
icholy
on Oct 27, 2022
|
parent
|
context
|
favorite
| on:
No safe efficient ways to do three-way string comp...
It's because people started putting "always use strings.Compare" in their style guides.
tapirl
on Oct 27, 2022
[–]
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.
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: