News for hackers. Stuff that matters.
Re:Why I’m Frustrated with Go by hota_mazi on Sunday July 23, 2017 @12:33PM (#14833060)
That function does create an object with a well defined interface, but because you are using a dynamically typed language, that object has the type "Object" (or Any, or whatever the mono type of that language is).

If you call that function, you have no idea what the type of that object is. Only the function knows it and that information is lost as soon as the function returns.

Re:Why I’m Frustrated with Go by harpiaharpyja on Sunday July 23, 2017 @06:27PM (#14834746)
I think I will have to disagree with that. The type of object is not enforced by the compiler, but that's a long way off from "you have no idea what the type of that object is."
Re:Why I’m Frustrated with Go by hota_mazi on Sunday July 23, 2017 @07:50PM (#14834989)
The fact that the compiler cannot enforce it is a big deal since it prevents automatic refactorings, often impairs performance and overall, hinders readability.

And yes, you really have no idea what the type of that object is unless you look at the source of the function. Which is obviously suboptimal, especially if you don't have access to that source.