4 ms·
The OP offers up Python as an example of "weightlessness", which I take as meaning "it will execute any code it can parse." Languages with this kind of toleran
by swdunlop 14y ago
The OP offers up Python as an example of "weightlessness", which I take as meaning "it will execute any code it can parse." Languages with this kind of tolerance require exhausting levels of diligence to verify assumptions and ensure consistency in a development team.
Go's pedantic compiler and style enforcement fade pretty quickly into the background with practice and a reasonable text editor. The pain of trying to fix mixed metaphors between modules in Python never will.
As an aside, here is the solution to your fmt.Println problem:
func traceln(v ... interface{}) {
fmt.Println(v...)
}
Just bind the function, and you can comment or uncomment traceln to your heart's desire.
- stcredzero 14y agoWhat (and in what context) do you mean by "binding the function?"
- dalke 14y ago"Languages with this kind of tolerance require exhausting levels of diligence" I don't understand this statement. People successfully write large Python programs and don't get exhausted in the process. Could you elaborate on how "mixed metaphors" affects things in Python, and how Go's syntax checks eliminate that problem in Go?