News for hackers. Stuff that matters.
Re:Carbon is not a programming language (sort of) by adrian_b on Saturday February 08, 2025 @12:52PM (#42984673)
That is just an acknowledgment of the fact that for something as complex as C++ a fully automated migration is unlikely to be achievable.

This does not mean that they will intentionally avoid to make possible a fully automated migration.

Normally the migration tools should be designed to attempt to do a fully automated migration, but whenever there are corner cases for which the effort to handle them completely automatically would not be worthwhile, then human intervention shall be required.

Re:Carbon is not a programming language (sort of) by tialaramex on Sunday February 09, 2025 @05:21AM (#42989768)
Yes.

In C++ in particular one of the most obvious ways to write unmaintainable C++ which such automation couldn't be expected to migrate is via abuse of the pre-processor.

C++ retains the entire C pre-processor, which is a weird not-quite-language-agnostic text macro language on top of C. We can abuse this to write a different programming language, with different rules, and then at compile time the pre-processor transforms it into C++ which compiles.

I'm confident a migration tool could not always usefully translate this, and I'd argue that's not a failing of the tool so much as an inevitable consequence of writing this unmaintainable code.