Talk:intro/hello world


Mentioning namespaces necessary?

Did some reformatting to use definition lists to make each line stand out better, and some minor editing (technically "the most basic program possible in C++" is "int main(){}" ^_^;). But there's probably some stuff here that isn't really necessary to be introduced yet. Like, it probably isn't necessary to talk about namespaces, identifier collisions, and such at this point. Just say "std::cout is what you use to output stuff" and be done with it for now.--Indi (talk) 08:58, 14 September 2013 (PDT)

Why including that final return from main()?

This is C++, not C. The final return is implicit, and it's generally considered bad form to include this redundant statement at the end of main() (and, by implication, this beginner tutorial's explanation of it).

While you're absolutely correct about idiomatic C++, there is also the argument that adding an explanation for this special case would be an unnecessary burden for a person seeing code for the first time. I could see going either way on this. --Nate (talk) 06:47, 10 February 2014 (PST)