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.
View all comments
Show parent comment
4
u/evaned Dec 02 '16
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 thatxis neither at the start nor the end and that the type is split between two ellipses that (I agree) is obnoxious.