News for hackers. Stuff that matters.
Re:A Rust Contributor Tries Their Hand at Go by infogulch on Tuesday April 28, 2015 @04:43PM (#9455035)
Thanks for the example. Out of curiosity, what was the signature of your Next method?

> I implemented a DB driver that had its own Next() method. Later I wanted to implement the SQL package interface.

(Did you mean the database/sql/driver driver.Rows interface[1]? sql.Rows is a struct not an interface.)

Just to be clear, you implemented a DB driver and then went to satisfy the driver interface? And this was after you already published it and would break backwards compatibility?

> especially as interfaces proliferate.

True. There will only be more interfaces over time. We'll want to keep them as small and descriptive as possible if we want the ecosystem to be sustainable.

[1]: https://golang.org/pkg/database/sql/driver/#Rows

There are no comments on this comment yet.