On Mon, 30 Nov 2020 at 08:03, Paul Sokolovsky <pmis...@gmail.com> wrote:
> On the other hand, block-scoped variables are implemented in:
>
> * C
> * C++
> * Java
> * Rust
> * Lua
> * JavaScript (not by default, as opt-in)
> * Scheme
> * Common Lisp (as opt-in)
> * ML
> * Ocaml
> * Haskell
> * very long list of other languages...

How many of these languages don't require any sort of variable
declaration for all but a tiny minority of variables?

> The aim of the block scoping proposal is to make Python *not worse*
> than these other languages, instead of adding funny workarounds again.

One of the ways in which Python is *better* than these languages is in
not requiring variables to be declared. Let's not make the proposed
Python *worse* than the current version of Python, by making variable
declarations common.

Paul
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/4QKGFAYTXCPQZG3KTNM3WT2QIGMEATDT/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to