Re:Overview: What are Cpp2 and cppfront? How do I get and bu...
by kreco on Sunday March 31, 2024 @06:37PM
(#39888766)
Note that the "<<" operator for std::cout is not related to the language itself but related to the standard library.
[ Parent
| on HN ]
Re:Overview: What are Cpp2 and cppfront? How do I get and bu...
by Sharlin on Sunday March 31, 2024 @06:42PM
(#39888818)
But in a "C++ 2" helloworld one would really expect to see std::println used instead [1].
Re:Overview: What are Cpp2 and cppfront? How do I get and bu...
by tialaramex on Sunday March 31, 2024 @10:22PM
(#39890289)
Cpp2 is part of the trend for would be "C++ Successor languages" from 2022. The std::println function was standardised in C++ 23, and implementations still don't all provide it in full today.
So in effect Cpp2 pre-dates std::println. Herb will have been aware that it exists and is likely for C++ 23, but it doesn't make sense to ship software which requires features you suspect won't be widely available for several years. A "Hello, world" program should not be relying on bleeding edge features.