Talk:C++

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Former good articleC++ was one of the Engineering and technology good articles, but it has been removed from the list. There are suggestions below for improving the article to meet the good article criteria. Once these issues have been addressed, the article can be renominated. Editors may also seek a reassessment of the decision if they believe there was a mistake.
Article milestones
DateProcessResult
December 12, 2005Good article nomineeListed
March 19, 2006Peer reviewReviewed
September 8, 2007Good article reassessmentDelisted
August 27, 2011Good article nomineeNot listed
Current status: Delisted good article

What is the meaning of C++[edit]

What is the meaning of C++ 37.111.137.145 (talk) 00:16, 6 July 2022 (UTC)[reply]

It's literally written in the article. Have you tried reading it? Fbergo (talk) 04:06, 6 July 2022 (UTC)[reply]

New modern example of C++23[edit]

Since July 2022, a bunch of things were added such as standard library modules (P2465R3) and a new formatted output functions (P2093R14). The new "hello world" program uses both fresh core language and standard library features:

import std;

int main()
{
    std::println("Hello, world!");
}

This concise snippet of code conforms to the standard C++23 and thus makes the program well-formed. However, since it's too early, no compilers have supported this as of now. Maybe it's ok to amend the recent changes after the classic hello world code. — Preceding unsigned comment added by Moondezmon (talkcontribs) 11:49, 30 July 2022 (UTC)[reply]

I don't think it's appropriate to include this in the main C++ article yet. But you could put it in the C++23 article. --Zundark (talk) 12:09, 30 July 2022 (UTC)[reply]

removal of the statement, that certain infamous companies and/or people have problems with C++ exception handling[edit]

The statement, that there are (still) companies and/or people, with an aversion against C++ exception handling should be removed.

Usage of C++ without exception handling always meant obfuscation due to multi-step initialization and/or acceptance of a crash/abort in case of error.

After a quarter century (1996) of successful exploitation, there is no need to dignify such inaptitude any longer -- if it was ever justified! 139.181.7.34 (talk) 22:04, 8 August 2022 (UTC)[reply]

External Links - Add link to tutorial for C++[edit]

How about adding this link https://www.learncpp.com/ to the External Links section for readers to learn how to program in C++? I am learning from it myself and it is a very good resource, I like it alot better than others I have tried, including but not limited to: CodeAcademy, Programiz, w3schools, Microsoft Docs, FreeCodeCamp, and Udemy. 172.56.80.69 (talk) 21:52, 19 September 2022 (UTC)[reply]

It fails on external link guidelines TEDickey (talk) 22:54, 19 September 2022 (UTC)[reply]

C++ is not general purpose or high level.[edit]

C++ has system facilities. Any language with low-level facilities should not be use for general-purpose programming. It bakes in dependencies, results in lock in (which C does), and also results in inflexibility.

C++ also has many primitive facilities like pointers and defines which really have no place in general-purpose programming.

Like C based its syntax on BCPL which was a structured language from ALGOL, just adopting structured syntax does not make a language high-level.

C++ adopted objects and inheritance from Simula, but same thing, except in C++ it was a semblance of OO, but in syntax, not in spirit. Other facilities like multiple inheritance and templates (primitive generics) were added from elsewhere.

C++ really should be limited to legacy system software. Ian.joyner (talk) 20:17, 13 May 2023 (UTC)[reply]

no Disagree while it provides low-level facilities, C++ allows the developer to choose the level of abstraction they desire. Lightbloom (talk) 02:10, 6 September 2023 (UTC)[reply]
@Lightbloom I think there should be some mention of this somewhere. It seems to be both high and low level. Panamitsu (talk) 02:13, 6 September 2023 (UTC)[reply]
It does already mention in the lead that it provides low-level facilities. If you believe this should be more prominent I have no opinion one way or the other. Lightbloom (talk) 02:19, 6 September 2023 (UTC)[reply]
are you a rustard ? StrikrIO (talk) 16:15, 11 December 2023 (UTC)[reply]