News for hackers. Stuff that matters.
Re:Go 1.20 Released by umanwizard on Thursday February 02, 2023 @03:05AM (#34623614)
> there is the problem that >> is a token and cannot be used for two closing template angle brackets.

This was fixed years ago in C++11.

Re:Go 1.20 Released by Conscat on Thursday February 02, 2023 @11:54AM (#34629328)
They still have other issues, though. You ever had to put `template` before a templated member function called from an object of a `typename` type? Not fun, yet I have to do it all the time in my C++ code. MSVC and Comeau make this problem optional, but GCC and Clang don't (as per the standard).

The chevrons also confuse all my editors, because they can't figure out whether `<` is an opening bracket pair, or if its just a less-than operator. I'm a bit miffed that Cpp2 doesn't try to replace the chevrons with something else, like D did. I'm also miffed that Rust uses the chevrons too.