PEP 526 - var annotations and the spirit of python
info at tundraware.com
Sun Jul 1 18:22:43 EDT 2018
On 07/01/2018 12:17 PM, MRAB wrote:
> On 2018-07-01 18:06, Abdur-Rahmaan Janhangeer wrote:
>> was viewing pep526, so, finally, python cannot do without hinting the type
>> as other languages?
>> will python finally move to
>> int x = 3 where int is a pre annotation?
>> i am not arguing it's usefulness but rather, does it fit with python?
> PEP 526 says that the annotation would be:
> x: int = 3
> It also says """It should also be emphasized that Python will remain a dynamically typed language, and the authors have no desire to ever make type hints mandatory, even by convention.""
This strikes me as syntactic noise. Python is dynamically typed and will remain so.
Why clutter the language - even optionally - with stuff like this?
More information about the Python-list