From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KvrHo-0005jR-Ht for garchives@archives.gentoo.org; Fri, 31 Oct 2008 10:31:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23DDAE030D; Fri, 31 Oct 2008 10:31:24 +0000 (UTC) Received: from mail00.xencon.net (mail00.xencon.net [83.246.72.66]) by pigeon.gentoo.org (Postfix) with ESMTP id EE7AEE030D for ; Fri, 31 Oct 2008 10:31:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail00.xencon.net (Postfix) with ESMTP id 64DB8816C40 for ; Fri, 31 Oct 2008 11:17:55 +0100 (CET) X-Virus-Scanned: amavisd-new 2.4.4 (20061120) at xencon.net X-Spam-Score: -2.964 X-Spam-Level: X-Spam-Status: No, score=-2.964 required=4.5 tests=[ALL_TRUSTED=-1.8, AWL=-0.424, BAYES_20=-0.74] Received: from mail00.xencon.net ([127.0.0.1]) by localhost (mail00.xencon.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yUoSRvsSE9Mz for ; Fri, 31 Oct 2008 11:17:54 +0100 (CET) Received: from [10.2.10.253] (unknown [81.14.211.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: modelnine) by mail00.xencon.net (Postfix) with ESMTP id 0670581AA86 for ; Fri, 31 Oct 2008 11:17:54 +0100 (CET) From: Heiko Wundram To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] OT: Python (was: package.keywords syntax?) Date: Fri, 31 Oct 2008 11:31:16 +0100 User-Agent: KMail/1.9.10 References: <1225393864.14880.15.camel@brotherus.rdu.redhat.com> <20081031095423.GA8173@aldous> In-Reply-To: <20081031095423.GA8173@aldous> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810311131.16991.heiko@xencon.net> X-Archives-Salt: 90e40fd9-4b76-44a3-9b28-655c3bde1277 X-Archives-Hash: 388e4fdc4bb7543ad201191dace301d3 Am Friday 31 October 2008 10:54:23 schrieb Matthias Bethke: > Hi Albert, > > on Thu, Oct 30, 2008 at 03:11:04PM -0400, you wrote: > > ... but Jorge is right. This is easily picked up by a lint tool... and > > good python programmers use them ;-). Some python-aware editors even > > have this functionality built in. > > Whow...I've been out of Python long enough to totally forget that you > *needed* to do this. In Perl, the "use strict" you find at the top of > every well-written script does it at compile time. Yeah, let's continue to bash Python, which is such a badly broken language nobody wants to use it productively, because other languages offer so much better functionality to test for programmer error at compile time. Perl is a brilliant example to mention in this context. Seriously: dynamic typing is a blessing, (only!) when combined with strict typing (where Perl doesn't [really] have the latter, even when use strict is in effect). Having to declare variables before use mostly is irrelevant (I'm not talking about _defining_ variables before use), because it's no common source of bugs. At least that's my 5 cents. -- Heiko Wundram hackerkey://v4sw7CHJLSUY$hw5ln5pr7FOP$ck2ma9u7FL$w3DVWXm0l7GL$i65e6t3EMRSXb7ADORen5a26s5MSr2p-6.62/-6.56g5AORZ