C++ 23 to introduce module support

by Reima Budd on Jun 7, 2022 Software 442 Views

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

Comments

No comments have been left here yet. Be the first who will do it.
Safety

captchaPlease input letters you see on the image.
Click on image to redraw.

Reviews

Guest

Overall Rating:

Statistics

Members
Members: 16447
Publishing
Articles: 77,660
Categories: 202
Online
Active Users: 1705
Members: 11
Guests: 1694
Bots: 25368
Visits last 24h (live): 2600
Visits last 24h (bots): 43524

Latest Comments

If you want to escape from the real world and enter into a fantasy world filled with eroticism and indulgence, then our Escorts in Delhi will be available to fulfill every desire you might have,...
The Phantom Wallet Extension has emerged as one of the most intuitive and powerful tools for managing digital assets. Whether you're a beginner stepping into crypto or a seasoned Web3 enthusiast,...
Target Credit Card Login makes it easy and quick to manage your account. The secure online portal allows cardholders to view balances and transactions, make payments and monitor account activity...
amazon.com/code – Enter Your Gift Card or Promo Code with Ease! Have a gift card or promotional code? Just go to amazon.com/code and quickly redeem your code to add the balance to your account....
  Snow Rider rewards concentration and precise timing, as one mistake can instantly end the run and force a restart.
Having a reliable account portal is very important, and this is exactly what Target red Card Login offers. The platform offers easy access to account details and payment instruments, enabling...
Ready to stream? Just go to Amazon.com/mytv to activate your device with a few easy steps, and you'll be watching your favorite movies, TV shows and exclusive Prime Video content in no time!...
As someone interested in technology, I appreciate how IDEs simplify complex development tasks and make programming more accessible. Reading about the challenge of choosing the right IDE reminds me...
Yes, great US Military force. Also, in his post you have given a chance to listen about US Military. I really appreciate your work. Thanks for sharing it.  oak dining table
It's worth noting that Facebook Messenger offers several cool features like managing multiple accounts, integrating SMS messages, and even a secret conversation mode for added privacy. So, if...

Translate To: