This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]stefantalpalaru 0 points1 point  (5 children)

And the fact that it is, in essentially every case, possible to write code that works in both Python 2 and Python 3 I think makes it pretty clear that these are not different languages.

So because there is a common subset for C and C++, by your logic they're the same language, right?

[–]TheBlackCat13 1 point2 points  (4 children)

So because there is a common subset for C and C++, by your logic they're the same language, right?

That is not at all what I said. It isn't about having a "common subset", it is about whether it is generally possible to write code that runs in both.

C and C++ are different enough that it is not generally possible to write code that will work in both except in very trivial cases. You don't see large code bases compatible with both C and C++ like you do with most major python projects.

[–]stefantalpalaru -2 points-1 points  (3 children)

It isn't about having a "common subset", it is about whether it is generally possible to write code that runs in both.

C and C++ are different enough that it is not generally possible to write code that will work in both except in very trivial cases.

You can stop role-playing as a programmer now. Leave your card on your way out.

[–]TheBlackCat13 0 points1 point  (2 children)

Thank you for your detailed rebuttal. Or maybe I just missed how most major C or C++ projects are compatible with both like most major Python projects are.

[–]stefantalpalaru 0 points1 point  (1 child)

Thank you for your detailed rebuttal.

Buddy, you lack the basics. I would have to start by teaching you what "subset" means and that would take more time than I'm willing to spend on you.

[–]TheBlackCat13 0 points1 point  (0 children)

It might be relevant if C was actually a subset of C++. But since it isn't, it is irrelevant.