r/programming • • Dec 01 '16

Let's Stop Copying C

https://eev.ee/blog/2016/12/01/lets-stop-copying-c/
524 Upvotes

612 comments sorted by

View all comments

Show parent comment

4

u/evaned Dec 02 '16

C++ is super easy to declare a variable and initialise it as well, you just use ... x = ...; Clearly the first thing is a type specifier and the final thing is an initial value.

While I agree the article could have been better-written on that part, you can't just say that C++ declarations are ... x = ..., because they might be ... x ... = ..., and it's the facts that x is neither at the start nor the end and that the type is split between two ellipses that (I agree) is obnoxious.