galdor, In #Go, you cannot call the String method on a literal URL struct ("cannot call pointer method String on url.URL") because the String method has a pointer receiver. String does not modify the object, but it uses a pointer receiver to avoid copying the object for each call.
This is what you get when 1/ you design a language with pointers (why would you do that in 2009?) and 2/ you do not have "const".
Just bad design.
Add comment