Linked by Thom Holwerda on Mon 11th Feb 2013 22:59 UTC
General Development "I feel like writing about the Go programming language (or 'Golang') today, so instead today's topic is computer stuff. For the record, the language I've programmed the most in has been Python, so that’s the perspective I'm analyzing it from." Some good and bad things about Go.
Thread beginning with comment 552257
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: My thoughts on Go
by moondevil on Tue 12th Feb 2013 20:20 UTC in reply to "RE: My thoughts on Go"
moondevil
Member since:
2005-07-08

I'm curious why you feel you need an IDE? Go has been perfectly fine in most editors in my experience.



For example, list all the interfaces the following type does support:

type Example struct {
afield int
}

func (e *Example) MyMethod () int {
}

Without the help of a tool that searches all visible interfaces and checks if Example fullfils the required set of methods, it is not possible by reading the code to know which set of interfaces are supported by Example.

Reply Parent Score: 3

RE[3]: My thoughts on Go
by satsujinka on Tue 12th Feb 2013 20:40 in reply to "RE[2]: My thoughts on Go"
satsujinka Member since:
2010-03-11

You don't need to know all the interfaces Example implements. You just have to know what the interface you're using requires and if your object has it.

In other words, you're looking at the code backwards compared to how Go works. Which may be an issue if ideal mental models of Go end up being backwards compared to other languages.

Reply Parent Score: 3

RE[4]: My thoughts on Go
by moondevil on Tue 12th Feb 2013 20:59 in reply to "RE[3]: My thoughts on Go"
moondevil Member since:
2005-07-08

You don't need to know all the interfaces Example implements. You just have to know what the interface you're using requires and if your object has it.


How do you do it without reading the full code that relates to Example struct, specially if it happens to be scattered across multiple files?

The solution proposed in multiple discussions in gonuts is to try to compile and see if it works and fix missing methods as required. Very helpful.

Reply Parent Score: 2