4 ms·
> A second dialect would be an "experimental" dialect. Python already has that in the form of the `__future__` module. > A third dialect would be a "beginner"
by BerislavLopac 6y ago
> A second dialect would be an "experimental" dialect.
Python already has that in the form of the `__future__` module.
> A third dialect would be a "beginner" dialect.
> This beginner dialect would be, in version 4.0, a strict subset of the main dialect.
> it might perhaps make sense to eventually introduce a few additional keywords and constructs not available from the main dialect
While I like the idea of the beginners using only a subset of the language, I don't like the alternate keywords; while it might make getting into the language easier for someone coming from another one, I'm afraid it might actually slow down the adoption later on.
In fact nothing (except for the effort required to actually do it) prevents that "strict subset" concept to be introduced in Python as it is, by marking certain features/keywords as "advanced" and adding a flag on the interpreter to throw a warning (or even an exception; there could be two settings) if one is used. That is not unlike the way the -O and -OO flags currently work.
> a fourth dialect would be a "static" dialect
I don't think that this could (or should) be introduced, as it goes directly against some of the Python's basic concepts.