Hacker News new | ask | show | jobs
by jjnoakes 3571 days ago
I have no stake in pro-Go or anti-Go statements here, but I do want to say that a simple language does not always lead to simple code in that language.

For example, if one has to copy and paste because a language is too simple to provide a needed abstraction, then the code is needlessly complicated (through duplication) because the language is too simple.

1 comments

Exactly. C is a vastly smaller language than C++ but OO C is very complex with factories booking up function pointers, lots of macros, etc.

Creating an object with runtime polymorphism in C++ is much simpler.