News for hackers. Stuff that matters.
Re:Interfaces in Go make it hard to navigate code by sirclueless on Monday May 27, 2013 @09:43PM (#5777545)
Sure there is. For example the FileReader class documentation[1] has a listing of "All implemented interfaces," and the Readable interface documentation[2] has a listing of "All Known Implementing Classes." Pretty much every IDE I know of extends that to include classes from the current package and referenced libraries.

So if you need a Readable in Java ("Reader"[3] is an abstract base class, which incidentally lists all of its known subclasses, including FileReader if you follow through InputStreamReader), you have a ready listing available of all the common implementations, which solves this issue straight away, in a way that Go currently lacks.

There's nothing stopping Go from having this tooling too (with the caveat that interface cross-references would have to be "All known implemented interfaces" instead of "All implemented interfaces"), it's just not there yet.

[1]: http://docs.oracle.com/javase/7/docs/api/java/io/FileReader....

[2]: http://docs.oracle.com/javase/7/docs/api/java/lang/Readable....

[3]: http://docs.oracle.com/javase/7/docs/api/java/io/Reader.html

There are no comments on this comment yet.