[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"use strict"

On 11/03/2019 18:24, Abdur-Rahmaan Janhangeer wrote:
> i mean a way to solve the problem of declaring variables beforehand and not
> changing in loop. like not using undeclated variables. but that's precisely
> what python has, you can't just declare a variable with no assignment.
> maybe some special symbils to mark that.

You sent this to me instead of the list, but never mind.  If you want 
this, Guido's time machine strikes again.  Just use type annotations and 
mypy, or pylint or the like for static checking of unexpected variables.

Rhodri James *-* Kynesim Ltd