4 ms·
What a blockbuster release (candidate). Congrats golang team! I can't wait to start adding in the mutex contention to our tests, remove our custom graceful ht
by travisby 10y ago
What a blockbuster release (candidate). Congrats golang team!
I can't wait to start adding in the mutex contention to our tests, remove our custom graceful http shutdown library, compile 15% faster, start using context within our queries, write custom comparators [I needed this just last week! We had a type that already implemented the sort interface, but I needed to sort it by a different key in this one-off] for sorting, and have a much better time debugging JSON unmarshalling.
And those were just the big pieces I noticed that will be an immediate improvement!
- reikonomusha 10y agoFinally, in 2017, we can write custom comparators.
- steeve 10y agoA nice comment which adds nothing. On a side note, you always could.
- junke 10y ago> On a side note, you always could. Yes, with brand new sorter types for each different comparison. Knowing that Go had first-class functions from the beginning, it is actually quite surprising that a higher-order sort function didn't already exist.
- radimm 10y agodocumentation for customer comparators?
- junke 10y agohttps://beta.golang.org/doc/go1.8#sort_slice https://beta.golang.org/doc/go1.8#sort_slice