Movatterモバイル変換


[0]ホーム

URL:


Class Variable Question

Douglas Alannessus at mit.edu
Mon Apr 9 19:24:32 EDT 2001


scarblac at pino.selwerd.nl (Remco Gerlich) writes:> > In practice it is a *very* significant problem.  This is certainly one> > of the largest sources of bugs.  And it is, annoyingly enough, one of> > the few valid complaints that Perl devotees can make against Python.> Huh? In Perl it's even worse. Python will complain if you use a> variable it hasn't heard of, Perl just assumes it has a value of> 0...Perl has a "use strict" mode or somesuch, and when you turn on thatmode variables have to be declared before being assigned to orreferenced.  Don't get me wrong, Perl is the most painful blight onthe face of the Earth since Lionel Richie, but that doesn't mean thatit did *everything* wrong.> > Why not be honest:  It's a wart on the language.  But no language is> > perfect and Python is far better than most.> It's absolutely not a wart, it is a strength. Complete programmer> freedom is the *point* of much of Python.I'm not arguing against "programmer freedom".  I'm arguing forfeatures that reduce bugs without reducing power.|>oug


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp