Re:Go’s alias proposal and all my concerns of Google control...
by majewsky on Monday November 07, 2016 @07:43AM
(#12890583)
My favorite metric for language complexity is: How many distinct Turing-complete languages exist in this language?
On this metric, Go scores 1 (just Go itself), and C++ scores 3 (C preprocessor, C++ itself, C++ templates).
Re:Go’s alias proposal and all my concerns of Google control...
by gue5t on Monday November 07, 2016 @12:23PM
(#12892823)
C preprocessor alone is not turing-complete; you have to repeatedly apply the preprocessor (until you get a fixpoint or decide the program won't halt) to perform arbitrary computation.
Re:Go’s alias proposal and all my concerns of Google control...
by bbatha on Monday November 07, 2016 @11:24AM
(#12892242)
Go scores infinity actually. Go generate is a part of the language, which means that you can bring your own Turing-complete language to the party.
Reflection especially with plugins, are essentially another language that is even more difficult to track down than macros (or templates). Though you can at least write Reflection using go.
Re:Go’s alias proposal and all my concerns of Google control...
by Vendan on Monday November 07, 2016 @02:30PM
(#12894143)
but go generate isn't a part of the standard build process. If we go to that level, I can just say "most things that use C++ have a Makefile, so that's infinite too".
Re:Go’s alias proposal and all my concerns of Google control...
by elcct on Monday November 07, 2016 @08:43AM
(#12890903)
I get the feeling that C++ is becoming simpler to use with each edition. Perhaps some day if Go will be adding features such as this, they will meet half way through :)
Re:Go’s alias proposal and all my concerns of Google control...
by mrec on Monday November 07, 2016 @09:34AM
(#12891234)
That may be true of "the currently recommended subset of C++", but I doubt that many big legacy C++ codebases are written in that subset.
I don't think the language as a whole is getting any simpler.
I honestly think you're just being dramatic here, there's no way Go catches up to C++ in that respect any time soon.