News for hackers. Stuff that matters.
Re:Impressions of Go by mratzloff on Tuesday July 23, 2013 @01:25PM (#6091488)
Yes, but the `container/list` standard library uses the same approach.

I wrote a Cartesian product library that took a different tack--it splits the index and iterator cursor logic (integer fiddling) into one struct and the actual type into another, so it's easy to build type-checked objects.

In full disclosure, though, that was mainly because the alternative (using `interface{}`) was so utterly painful.

Re:Impressions of Go by Jayschwa on Tuesday July 23, 2013 @03:04PM (#6092208)
That sounds interesting and useful. Is that code publically available anywhere?
Re:Impressions of Go by mratzloff on Tuesday July 23, 2013 @07:44PM (#6093637)
No, unfortunately. It is proprietary.