Comment

Comment by LVB

>The tried and true approach of providing a compare method works great and has none of these drawbacks.

Agreed! https://pkg.go.dev/sort#Slice is wonderful. (Added a bit after this article was written, I think.)

parent LVB 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton