Is there a need for a “use strict” Python compiler?

后端 未结 10 2205
眼角桃花
眼角桃花 2021-02-03 21:26

There exist static analysis tools for Python, but compile time checks tend to be diametrically opposed to the run-time binding philosophy that Python embraces. It\'s possibl

10条回答
  •  遥遥无期
    2021-02-03 22:01

    Python has no true lexical scoping, so strict vars wouldn't be very sensible. It has no symbolic references AFAIK, so it has not need for strict refs. It has not barewords, so it has no need for strict vars.

    To be honest, it's only lexical scoping I miss. The other two I'd consider warts in Perl.

提交回复
热议问题