|
|
|
|
|
by andrewmcwatters
2808 days ago
|
|
How is this any different than namespace_init(); functions from C? I hear language complaints like this all the time, and it always sounds like developers grasping for something to complain about. I'm not even a Go fan, but I think you can cut the language some slack here at least in this department. The entire approach Go is selling from what I've hear is they're entirely forgoing the traditional object-oriented (in the C++ and Java sense of the term) approach for composability. Okay, sure, whatever, good for Go developers; but you can't complain about a leopard having spots. Just accept it or move on. |
|
It's not; presumably that's the point. C isn't exactly famous for its support for data hiding and enforcing invariants.