Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.04; 'string.': 0.05; 'utf-8': 0.07; 'string': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'yeah,': 0.09; 'jan': 0.12; 'defined,': 0.16; 'down...': 0.16; 'how,': 0.16; 'iteration': 0.16; 'iteration,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'sign.': 0.16; 'wrote:': 0.18; 'bit': 0.19; '(the': 0.22; 'example': 0.22; 'header:User-Agent:1': 0.23; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'character': 0.29; 'page.': 0.31; 'calculated': 0.31; 'url:library': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'anything': 0.39; 'bad': 0.39; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'most': 0.60; 'length': 0.61; 'further': 0.61; 'more': 0.64; 'believe': 0.68; 'subject:This': 0.74; 'received:fios.verizon.net': 0.84; 'start.': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: OT: This Swift thing Date: Wed, 04 Jun 2014 00:42:02 -0400 References: <34564700423508781.788278sturla.molden-gmail.com@news.gmane.org> <1685918893423520358.034637sturla.molden-gmail.com@news.gmane.org> <538E7ABE.4060200@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-71-175-90-87.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401856942 news.xs4all.nl 2860 [2001:888:2000:d::a6]:33308 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72589 On 6/3/2014 10:21 PM, Chris Angelico wrote: >> https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/StringsAndCharacters.html > > Yeah, I was looking at the same page. Note how, further down, a syntax > is given for non-BMP character entities (the same as Python's), and > then a bit more down the page, iteration over a string is defined, > with a non-BMP character in the example string. That's a good start. > However, keep going down... and you find that the length of a string > is calculated by iteration, which is a bad sign. I don't see anything > about indexing, which is the most important part. I believe go uses utf-8 and the above might indicate that of swift. -- Terry Jan Reedy