Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newsfeed.xs4all.nl!newsfeed2.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'static': 0.04; 'amounts': 0.07; 'compiler': 0.07; 'statically': 0.07; 'alain': 0.09; 'annotations': 0.09; 'coders': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subset': 0.09; "they've": 0.09; 'url:activestate': 0.09; 'variant': 0.09; 'python': 0.11; 'suggest': 0.14; 'language.': 0.14; 'useful,': 0.14; '"hey': 0.16; '"python': 0.16; 'c/c++.': 0.16; 'code?': 0.16; 'it),': 0.16; 'of)': 0.16; 'periods': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'language': 0.16; 'wrote:': 0.18; "python's": 0.19; 'thu,': 0.19; 'written': 0.21; '>>>': 0.22; 'code,': 0.22; 'memory': 0.22; 'header:User-Agent:1': 0.23; 'java': 0.24; '---': 0.24; 'compiled': 0.26; 'header:X-Complaints- To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'chris': 0.29; "we'd": 0.29; 'url:code': 0.29; "i'm": 0.30; 'code': 0.31; '>>>>': 0.31; 'about.': 0.31; 'writes:': 0.31; 'programmers': 0.33; 'problem': 0.35; 'test': 0.35; 'but': 0.35; 'there': 0.35; 'done': 0.36; 'similar': 0.36; 'behind': 0.37; 'massive': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'success.': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'liked': 0.60; 'worry': 0.60; 'free': 0.61; 'viruses': 0.61; 'information': 0.63; 'protection': 0.63; 'our': 0.64; 'face': 0.64; 'management': 0.65; 'finally': 0.65; 'antivirus': 0.68; 'subject:This': 0.74; 'analysis': 0.75; 'lack': 0.78; '*new': 0.84; 'dismissed': 0.84; 'dozens': 0.84; 'instant': 0.97 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: OT: This Swift thing Date: Thu, 05 Jun 2014 22:28:09 +0100 References: <8738fjkc2w.fsf@dpt-info.u-strasbg.fr> <87y4xbitfy.fsf@dpt-info.u-strasbg.fr> <87ppinhzjt.fsf@dpt-info.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-20-79.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: <87ppinhzjt.fsf@dpt-info.u-strasbg.fr> X-Antivirus: avast! (VPS 140605-0, 05/06/2014), Outbound message X-Antivirus-Status: Clean 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: 57 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1402003808 news.xs4all.nl 2959 [2001:888:2000:d::a6]:32876 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72767 On 05/06/2014 21:27, Alain Ketterlin wrote: > Chris Angelico writes: > >> On Thu, Jun 5, 2014 at 7:42 PM, Alain Ketterlin >> wrote: >>> Chris Angelico writes: >>> >>>> On Thu, Jun 5, 2014 at 6:14 PM, Alain Ketterlin >>>> wrote: >>>>> Swift's memory management is similar to python's (ref. counting). Which >>>>> makes me think that a subset of python with the same type safety would >>>>> be an instant success. >>>> >>>> In the same way that function annotations to give type information >>>> were an instant success? >>> >>> If they were useful, they would be used more. I have made several uses >>> of (a variant of) >>> >>> http://code.activestate.com/recipes/578528-type-checking-using-python-3x-annotations/ >> >> Precisely. I don't see that there's a huge body of coders out there >> just itching to use "Python but with some type information", or we'd >> be seeing huge amounts of code, well, written in Python with type >> information. They've been seen as an interesting curiosity, perhaps, >> but not as "hey look, finally Python's massive problem is solved". So >> I don't think there's much call for a *new language* on the basis that >> it's "Python plus type information". > > I have seen dozens of projects where Python was dismissed because of the > lack of static typing, and the lack of static analysis tools. I'm > supervising our students during their internship periods in various > industrial sectors. Many of these students suggest Python as the > development language (they learned it and liked it), and the suggestion > is (almost) always rejected, in favor of Java or C# or C/C++. > > -- Alain. > How many tears are shed as a result of these decisions? Or do they spend all afternoon at the pub celebrating as the code has compiled, while the poor, very hard done by Python programmers have to stay behind and test their code? Let's face it, we all know that for a statically compiled language the compiler catches all errors, so there's nothing to worry about. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com