by nomel · 10y ago · 0 comments
No it's not. The syntax is what defines the language:
In linguistics, syntax is the set of rules,
principles, and processes that govern the structure
of sentences in a given language.
It doesn't have the same syntax. It's not the same language, by definition.When we say it's the same language, most of those aspects are the same from Python 2 to Python 3.
What impact does one or other way of thinking (absurd vs has merit) about this (a potential break in backward compatibility between language versions due to any addition, removal or alteration of one or more language features) have on the language and its ecosystem and culture?
Imo:
* such potential breakage is relatively benign iff there's an easy-to-follow technique (eg using a linting tool or a program editor's search feature) that always ignores/accepts code compatible with the older language version and always catches/rejects code compatible with the newer language version.
* a further improvement on this is to have the inter-version checking done by a language's interpreters/compilers.
* best of all is when the language is at least partly compiled and compilation using the older interpreter/compiler does the rejecting at compile-time.