I kind of gave up on it when I realized how complicated it is to sort a list. Hopefully they'll improve that in future versions.
Still could see myself using it for specific use cases.
But for the future I'd wish for something cooler to win :-)
Edit: check out the sort module and decide for yourself http://golang.org/pkg/sort/
It has some interesting, if confusing, properties. But why not just let me write
list.sort(function(a,b){ return 1, 0 or -1...}) like JavaScript does?
While the examples in the sort module are perhaps more generic than necessary (hence the interesting but confusing properties), any sort still requires the definition of 3 functions, and they can't be defined inline (on the fly) either, afaik.
Still could see myself using it for specific use cases.
But for the future I'd wish for something cooler to win :-)
Edit: check out the sort module and decide for yourself http://golang.org/pkg/sort/
It has some interesting, if confusing, properties. But why not just let me write
list.sort(function(a,b){ return 1, 0 or -1...}) like JavaScript does?
While the examples in the sort module are perhaps more generic than necessary (hence the interesting but confusing properties), any sort still requires the definition of 3 functions, and they can't be defined inline (on the fly) either, afaik.