C++ 23, the planned next version of the C++ programming language due to be finalized in 2023, is set to move forward with support for a standard library module and faster compilation.
The upgrade to the language is likely to include a standard library module, called std, and some support for coroutines, language designer Bjarne Stroustrup said. With the standard library module, “Hello World” becomes as follows:
import std: int main() { Std::cout<< "Hello, World!\n"; }
This will compile 10 times faster than the old version using #include <iostream>
, Stroustrup said.
[ Also on InfoWorld: The rise of WebAssembly ]
Modules not only give improved compilation speed and better code hygiene, but also unify source organization of ordinary functions and templates, Stroustrup noted. The .h/.cpp distinction disappears and C++ source code is fundamentally simplified. “Eventually, modules will be the most significant improvement ever to the way we organize our code,” he said.
C++ 23, which is being developed under the ISO (International Organization for Standardization), will have many minor improvements, some of which will not seem minor, Stroustrup said. He noted that it was never supposed to be a major upgrade of C++ the way C++ 11 and C++ 20 were. Rather, it was supposed to complete C++ 20 and hopefully ship a few significant features.
For more information about
check go to this popular resource.
Article source: https://article-realm.com/article/Computers/Software/23215-C-23-to-introduce-module-support.html
Reviews
Comments
Most Recent Articles
- Oct 23, 2024 Cost to Build Music Streaming App in 2025 by Anita Shah
- Oct 21, 2024 Blog Topic- How Do Cyber Security Firms Utilize Advanced Technologies to Counter Threats? by securty
- Oct 21, 2024 Unlocking Business Efficiency with AI-Driven Software Development by rskbusiness
- Oct 14, 2024 Node.js Unleashed: A Deep Dive into JavaScript for the Server by Quickway Infosystems
- Oct 9, 2024 What Makes Angular and React Different Mainly? An Analysis of Comparisons by Quickway Infosystems
Most Viewed Articles
- 2823 hits Mit lokaler SEO Suchmaschinenoptimierung auf Platz eins! by BRIGHT DIGITAL
- 2481 hits What Is The Process Of Updating Garmin GPS Maps Free Of Cost? by Henry Ford
- 2019 hits Google Lighthouse- Auditing & Enhancing Shopify Theme Performance by Anuj Sharma
- 1889 hits How to Find Best Deals on www.amazon.com/code? by Patrika Jones
- 1620 hits How to change your Outlook password by larry felice
Popular Articles
In today’s competitive world, one must be knowledgeable about the latest online business that works effectively through seo services....
77514 Views
Are you caught in between seo companies introduced by a friend, researched by you, or advertised by a particular site? If that is the...
33028 Views
Walmart is being sued by a customer alleging racial discrimination. The customer who has filed a lawsuit against the retailer claims that it...
14056 Views
If you have an idea for a new product, you can start by performing a patent search. This will help you decide whether your idea could become the...
11257 Views
Statistics
Members | |
---|---|
Members: | 15673 |
Publishing | |
---|---|
Articles: | 64,357 |
Categories: | 202 |
Online | |
---|---|
Active Users: | 227 |
Members: | 4 |
Guests: | 223 |
Bots: | 10928 |
Visits last 24h (live): | 2178 |
Visits last 24h (bots): | 32291 |