Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'static': 0.04; 'argument': 0.05; 'received:134': 0.05; 'detect': 0.07; 'language,': 0.12; 'argument.': 0.16; 'attributes.': 0.16; 'burak': 0.16; 'expecting': 0.16; 'irrespective': 0.16; 'operands': 0.16; 'runtime.': 0.16; 'wrote:': 0.18; 'passing': 0.19; 'typing': 0.19; '>>>': 0.22; 'code,': 0.22; 'header:User-Agent:1': 0.23; "shouldn't": 0.24; 'first,': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'ease': 0.30; 'code': 0.31; 'easier': 0.31; 'interface': 0.32; 'actual': 0.34; 'problem': 0.35; "can't": 0.35; 'test': 0.35; 'words,': 0.36; 'subject:?': 0.36; 'hi,': 0.36; 'to:addr:python-list': 0.38; 'fact': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'problems.': 0.60; "you're": 0.61; 'kind': 0.63; 'pardon': 0.84 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EABYAAVKGuA9G/2dsb2JhbABbwBKCdoEzgxgBAQWBCQsYCRACEw8CRhMIAogMrmOIB5AhFhECg2UDl2GGEos8gxmBSh4 Date: Tue, 06 Aug 2013 15:57:26 +0200 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Newbie: static typing? References: <5200F9AE.9000805@arskom.com.tr> In-Reply-To: <5200F9AE.9000805@arskom.com.tr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1375797454 news.xs4all.nl 15893 [2001:888:2000:d::a6]:42114 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52041 Op 06-08-13 15:27, Burak Arslan schreef: > On 08/06/13 13:12, Rui Maciel wrote: >> Joshua Landau wrote: >> >>> What's the actual problem you're facing? Where do you feel that you >>> need to verify types? >> A standard case would be when there's a function which is designed expecting >> that all operands support a specific interface or contain specific >> attributes. >> >> In other words, when passing an unsupported type causes problems. >> > > Hi, > > First, let's get over the fact that, with dynamic typing, code fails at > runtime. Irrespective of language, you just shouldn't ship untested > code, so I say that's not an argument against dynamic typing. Why not? Can ease of development not be a consideration? So if some kind of faults are easier to detect at compile time if you have static typing than if you have to design a test for them, I don't see why that can't be an argument. -- Antoon Pardon