News for hackers. Stuff that matters.
Re:Native GUI library for Go by sdegutis on Friday June 06, 2014 @12:51PM (#7859012)
1. Float64Slice

2. IntSlice

3. StringSlice

http://golang.org/pkg/sort/

Re:Native GUI library for Go by stcredzero on Friday June 06, 2014 @12:55PM (#7859039)
Ah yes, I've run into this. It's certainly not some kind of "rabbit hole." So basically, there's a few lines of boilerplate for each time you want to sort something. So this is O(1) additional typing per sorted type, which is what it would be for generics. You're trying to kill your argument with faint support?

EDIT: Granted, it is an unusual formulation, and far less convenient.

Re:Native GUI library for Go by sdegutis on Friday June 06, 2014 @03:43PM (#7859941)
1-A. SearchFloat64s

2-A. SearchInts

3-A. SearchStrings

http://golang.org/pkg/sort/

Re:Native GUI library for Go by stcredzero on Friday June 06, 2014 @05:15PM (#7860312)
Ho hum. Same arguments apply. Also O(1) per type, just like generics.