News for hackers. Stuff that matters.
Re:Trying out C++20's modules with Clang and Make by IshKebab on Monday October 16, 2023 @07:27AM (#37898249)
Ah yes `.cxx` is rare but used. I haven't seem `.mm` for decades. IIRC gtkmm uses that? No maybe not, they use `.cc`. What on earth uses `.mm` now?

Anyway none of that really changes the point - they could easily standardise extensions. The only reason they haven't is because there has been no real benefit until now.

Re:Trying out C++20's modules with Clang and Make by dagmx on Monday October 16, 2023 @10:51AM (#37900633)
cxx is what msvc prefers hence why they picked icxx for their module types.

mm is convention for ObjC++ files, which is a required dialect if you need to use most the platform libs on Apple platforms.

Being the standard extensions for the two most major platforms, I wouldn’t call them rare at all.

And which further reinforces my point. They could have mandated an extension BUT it would have been going against convention which makes it decidedly not easy. There’s not one singular team in charge and there’s lots of friction in such a seemingly minor change.

I’d argue too that even with modules there’s very minimal benefit to a standard extension. Any such benefit would have had even greater benefit for the rest of the language.