C++ needs to abandon iostreams. Didn't the C++ community acknowledge that it was a bad idea? In the early days of D, people did want to do a version of it for D, but I objected and currently nobody wants it.
C++ needs to abandon iostreams. Didn't the C++ community acknowledge that it was a bad idea? In the early days of D, people did want to do a version of it for D, but I objected and currently nobody wants it.
Even in c++20, you could use format() to do most of what you'd want from it.
Although I would probably use std::print in more modern compilers.
D needs to work into its marketing, all key features that made it relevant back in 2011 with Andrei's book have now been copied even if badly, across all mainstream languages.
I thought it was ugly in 1987, and it hasn't improved with age. Then < > for templates made it worse.
Then there's formatted I/O:
void IOS_precision()
{
cout << "\n--------------------------\n";
cout << "Implementing ios::precision\n\n";
cout << "Implementing ios::width";
cout.setf(ios::fixed, ios::floatfield);
cout.precision(2);
cout<<3.1422;
cout << "\n--------------------------\n";
}
and I don't know if the problem with multithreading was resolved or not.> copied even if badly
Any program can be written in any language. But why suffer?
iostreams hardly played a role in all C++ GUI frameworks and for object serialisation, precision flags were seldom used.