News for hackers. Stuff that matters.
Re:C++26: The Oxford Variadic Comma by zlfn on Sunday March 15, 2026 @02:46PM (#47390500)
C++ seems to be constantly getting complicated. If the major version were to change, there wouldn't be any need for backward compatibility with the existing code, and it would have been okay to delete that syntax while creating an automatic formatter.
Re:C++26: The Oxford Variadic Comma by dnmc on Sunday March 15, 2026 @02:48PM (#47390522)
Are you suggesting we move to C++++?
Re:C++26: The Oxford Variadic Comma by zlfn on Sunday March 15, 2026 @02:53PM (#47390561)
It's already there. It's called C#
Re:C++26: The Oxford Variadic Comma by HackerThemAll on Sunday March 15, 2026 @03:10PM (#47390784)
Well, C# also has its quirks already. Like the crippled finalizers which are never to be used. If the IDisposable interface had been correctly designed, finalizers could become be the "public void Dispose(void)". Or the manual passing of Task in case of async methods, which is... kinda smelly.
Re:C++26: The Oxford Variadic Comma by tialaramex on Sunday March 15, 2026 @03:59PM (#47391261)
It's possible you didn't realise, but C# is sometimes said to be named that way because # is the symbol you get if you draw ++ small and then on the line below ++ again. Hence C++++

All languages have some spikier edges, there are no languages I know where I think "Well, even if we could start over I have no idea how to improve this". What's notable about C++ is just how rich that "could do better" seam is, so very many of their defaults are wrong, so many of their keywords are the wrong word, so many of their standard library features are allowed, sometimes even mandated to be crap.

Re:C++26: The Oxford Variadic Comma by kstrauser on Sunday March 15, 2026 @04:14PM (#47391376)
I don’t know if that’s true or not, but while the thought never crossed my mind before your comment, it’s now canon in my mind. Yes, C# is spelled C++++ with a ligature.
Re:C++26: The Oxford Variadic Comma by Sharlin on Sunday March 15, 2026 @06:18PM (#47392569)
The name is actually pretty clever (the fact that it was originally un-googlable notwithstanding). There are at least three interpretations:

* "C sharp" as in "C but higher",

* C with four pluses, and

* a homophone of "see sharp"

Re:C++26: The Oxford Variadic Comma by HackerThemAll on Sunday March 15, 2026 @04:10PM (#47391343)
I think you meant to get that to the original poster, who seems to imply C# is the flawless, bestest incarnation of C\+\+(\+\+)+.
Re:C++26: The Oxford Variadic Comma by cyberax on Sunday March 15, 2026 @06:32PM (#47392708)
This is a fundamental problem with GC-ed languages. You can't get predictable finalization, so IDisposable can never be implemented reliably.
Re:C++26: The Oxford Variadic Comma by layer8 on Sunday March 15, 2026 @07:01PM (#47392927)
“#” is just two “+”. Count the lines.
Re:C++26: The Oxford Variadic Comma by m-schuetz on Sunday March 15, 2026 @03:19PM (#47390899)
Personally I like C+. Picking the nice parts of C++, but skipping all the nonsense. I just wish C++ hadn't deliberately screwed up designated initializers with mandatory ordering. The C version of it that allows out-of-order assignments is clearly superior.
Re:C++26: The Oxford Variadic Comma by dist-epoch on Sunday March 15, 2026 @04:06PM (#47391311)
Didn't you read the article? That form is deprecated. The recommended one is C,++,++
Re:C++26: The Oxford Variadic Comma by PaulDavisThe1st on Sunday March 15, 2026 @05:18PM (#47392039)
You clearly didn't read it either. Going forward, it will be C++...
Re:C++26: The Oxford Variadic Comma by PaulDavisThe1st on Sunday March 15, 2026 @05:17PM (#47392026)
>If the major version were to change, there wouldn't be any need for backward compatibility with the existing code,

I have no idea where you get this idea from. I expect gcc v28 to be able to compile C++ from 2008, and I'm not alone in that.

Re:C++26: The Oxford Variadic Comma by maccard on Sunday March 15, 2026 @07:07PM (#47392989)
I completely agree with you.

That said, I wish code written for gcc v28 didn't have to be binary compatible with C++ that was last compiled in 2008...

Re:C++26: The Oxford Variadic Comma by PaulDavisThe1st on Sunday March 15, 2026 @09:12PM (#47393946)
It isn't.
Re:C++26: The Oxford Variadic Comma by maccard on Monday March 16, 2026 @05:20AM (#47396710)
And yet GCC and MSVC both refuse to break ABI and have done so for over a decade.
Re:C++26: The Oxford Variadic Comma by PaulDavisThe1st on Monday March 16, 2026 @05:40PM (#47405307)
Some of us have been writing code for quite a bit longer than that.

The 2000's and C++ were a clusterfuck largely for this very reason.

Re:C++26: The Oxford Variadic Comma by maccard on Friday March 20, 2026 @11:14AM (#47455796)
I’ve been writing c++ since before then too. A lot has changed in the world, notably package managers are actually used with c++ these days.
Re:C++26: The Oxford Variadic Comma by gpderetta on Wednesday March 18, 2026 @05:59AM (#47423642)
MSVC used to break library ABI pretty much on every release. They stopped after overwhelming customer demand.
Re:C++26: The Oxford Variadic Comma by recursivecaveat on Sunday March 15, 2026 @06:52PM (#47392859)
I mean this is extremely minor, but the more incompatibility you create the slower the uptake will be. In the extreme you could create a Python 2->3 situation over old syntax.