3 ms·
The premise that three-way string comparisons are widely used is spurious at best.
by daviddever23box 4y ago
The premise that three-way string comparisons are widely used is spurious at best.
- tapirl 4y agoEvidences are provided in the article: https://sourcegraph.com/search?q=context:global+switch+strings.Compare+lang:Go+&patternType=literal https://sourcegraph.com/search?q=context:global+switch+strin...
- daviddever23box 4y ago201 instances != widely used by multiple projects. Thank you for playing. There are many ways to approach this type of problem, and–while I understand that some may want to lean on this approach, based on their experiences with another language–this is an academic comparison, and far less useful than one might believe when building performant code. To each their own.
- tapirl 4y agoDo you mean it is rare? Man, it is the key to do binary-searching. > ... based on their experiences with another language ... Sorry, this is language independent.