Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.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; 'amounts': 0.07; 'alain': 0.09; 'annotations': 0.09; 'coders': 0.09; 'subset': 0.09; "they've": 0.09; 'url:activestate': 0.09; 'variant': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'language,': 0.12; 'useful,': 0.14; '"hey': 0.16; '"python': 0.16; '(there': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'of)': 0.16; 'wrote:': 0.18; "python's": 0.19; 'thu,': 0.19; 'written': 0.21; '>>>': 0.22; 'code,': 0.22; 'memory': 0.22; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'own.': 0.24; 'cc:2**0': 0.24; 'compiled': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'chris': 0.29; 'feature': 0.29; "we'd": 0.29; 'url:code': 0.29; 'message-id:@mail.gmail.com': 0.30; 'writes:': 0.31; 'quite': 0.32; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'similar': 0.36; 'apple': 0.38; 'massive': 0.38; 'pm,': 0.38; 'success.': 0.39; 'times': 0.62; 'information': 0.63; 'such': 0.63; 'more': 0.64; 'management': 0.65; 'finally': 0.65; 'subject:This': 0.74; '*new': 0.84; 'to:none': 0.92; 'instant': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=9gl7P+1VUeHNMX+P1fuYhxenXIPTgr/j99cYeLDEj5Y=; b=s/jVR6fUtgD07CKmH+s94mVUgYMueT04Lu6UrdReLojSnA4rraxV1wTC2d7m1PboIP QRnZiWiaB5skey6Wba6zCwFRBFruw7RMK4qFP/3mbc3qnHzljW9CBy9hQk1MUHHjhXD2 psoNtooYcHjk7ShrRMUDjfKEeAnnHkhqqX86kfBcTyeMRrHAdlOqy5GXBCt1wR54GToN UGe9jqaRPVIhB3QpDE4MmEld57WugTZYQS7LEvctB+YexvXKWDawgc1OIdl81YcR2WWt c8Cp+vTOUoZpZJbrcvK0RDYxvYQO4/ZfnhE4GyZvz5MV4kYmfoIC5i1D2fp8Ig6pWrpE fMlg== MIME-Version: 1.0 X-Received: by 10.52.136.98 with SMTP id pz2mr7108328vdb.70.1401972516150; Thu, 05 Jun 2014 05:48:36 -0700 (PDT) In-Reply-To: <87y4xbitfy.fsf@dpt-info.u-strasbg.fr> References: <8738fjkc2w.fsf@dpt-info.u-strasbg.fr> <87y4xbitfy.fsf@dpt-info.u-strasbg.fr> Date: Thu, 5 Jun 2014 22:48:36 +1000 Subject: Re: OT: This Swift thing From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401972524 news.xs4all.nl 2943 [2001:888:2000:d::a6]:49754 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72702 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". There's more call for "Python with C-like syntax", given the number of times people complain about indentation. (There already is such a language, but it's somewhat obscure, so it's quite likely Apple aren't aware of its merits.) There might be call for "Python that can be compiled efficiently to the such-and-such backend". But not "Python with declared-type variables", not as a feature all of its own. ChrisA