Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'static': 0.04; 'syntax': 0.04; 'string': 0.09; 'imho.': 0.09; "they've": 0.09; 'python': 0.11; 'random': 0.14; 'brackets': 0.16; 'curly': 0.16; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'means.': 0.16; 'retained': 0.16; 'semantics': 0.16; 'sugar': 0.16; 'syntactic': 0.16; 'unicode.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'typing': 0.19; 'seems': 0.21; 'memory': 0.22; 'header:User- Agent:1': 0.23; 'class.': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'chris': 0.29; 'am,': 0.29; 'mix': 0.30; 'libraries': 0.31; 'types.': 0.31; 'class': 0.32; 'basic': 0.35; 'created': 0.35; 'but': 0.35; 'are,': 0.36; 'performance': 0.37; 'message-id:@gmail.com': 0.38; 'apple': 0.38; 'mapping': 0.38; 'url:library': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'skip:u 10': 0.60; 'worry': 0.60; 'simply': 0.61; 'more': 0.64; 'kept': 0.65; 'subject:This': 0.74; 'expose': 0.84; 'swift': 0.91 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Tue, 03 Jun 2014 19:47:42 -0600 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: OT: This Swift thing References: <34564700423508781.788278sturla.molden-gmail.com@news.gmane.org> <1685918893423520358.034637sturla.molden-gmail.com@news.gmane.org> In-Reply-To: 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401847530 news.xs4all.nl 2950 [2001:888:2000:d::a6]:43203 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72572 On 06/03/2014 03:01 PM, Chris Angelico wrote: > On Wed, Jun 4, 2014 at 6:43 AM, Sturla Molden wrote: >> A Python with static typing would have been far better, IMHO. It seems they >> have created a Python-JavaScript bastard with random mix of features. >> Unfortunately they retained the curly brackets from JS... > > More important than the syntax is the semantics. Have they kept the > embarrassment of UTF-16 strings? I skimmed the docs, and I *think* > they've made it support Unicode. No idea how performance and memory > usage are, but once you have the semantics right, you can worry about > performance later. A Swift string is simply a one-to-one mapping of the NSString class. Apple claims it is "unicode compliant" whatever that means. https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html In some ways Swift reminds me of Vala. IE it's syntactic sugar around existing class libraries that expose them as basic types.