Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72576

Re: OT: This Swift thing

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'string.': 0.05; 'string': 0.09; 'yeah,': 0.09; 'cc:addr:python-list': 0.11; 'defined,': 0.16; 'down...': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'how,': 0.16; 'iteration': 0.16; 'iteration,': 0.16; 'means.': 0.16; 'sign.': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'bit': 0.19; '(the': 0.22; 'example': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'class.': 0.26; 'header:In-Reply-To:1': 0.27; 'michael': 0.29; 'am,': 0.29; 'character': 0.29; 'message-id:@mail.gmail.com': 0.30; 'page.': 0.31; 'calculated': 0.31; 'received:google.com': 0.35; 'apple': 0.38; 'mapping': 0.38; 'url:library': 0.38; 'whatever': 0.38; 'anything': 0.39; 'bad': 0.39; 'most': 0.60; 'length': 0.61; 'simply': 0.61; 'further': 0.61; 'more': 0.64; 'subject:This': 0.74; 'start.': 0.84; 'swift': 0.91; 'to:none': 0.92
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=WBL+Mbyfk68I9YctuEH15BcTt5GSLZBHEnDDavfXE4g=; b=jTDi1nSFKf29XU+G7Lqtce7NPK8bp8X8VVs9cFke+KabINcMItTDz6EFJUcKe8GYOP j60w9yM+SzQS1F0uxyfVN04biLuxgShWA73VNtsWNIQTsIlf6i4JZ9noCFLw1qb7GBdy Nz1XZSlRtpySJaNRLoy9e+w4oOV7AEpHyLC/SiVk406K7/vuP95XyCPWjPXsvn6ycmv/ 4aGwEqIZwmSMTNQoNXttHH4uK0TLOjUWI1fGWRzr8t//53jLj+TLjR4Ovf8FwRDLlsLu xiBJzkxSo/YZMG++zSaJr8Gqk8oHZ3HrRHqNbj0g7ppE3wMe7oW73XL6nIXB+/aEZE1+ F0dA==
MIME-Version 1.0
X-Received by 10.58.116.1 with SMTP id js1mr14077908veb.29.1401848478693; Tue, 03 Jun 2014 19:21:18 -0700 (PDT)
In-Reply-To <538E7ABE.4060200@gmail.com>
References <34564700423508781.788278sturla.molden-gmail.com@news.gmane.org> <CANc-5UyPyvGJRizcz2f7N=KPvo3TH6LcWGxeSWHbgOm1XvYUuA@mail.gmail.com> <CAAu18hd8Spu98vcx6M+JQqZiYXXXu38et1i2quSNy506i=ESYA@mail.gmail.com> <1685918893423520358.034637sturla.molden-gmail.com@news.gmane.org> <CAPTjJmpRAL2HHtdQ410AgSU44mhaXy3H6XTYbRjnc_Cc4eZv6g@mail.gmail.com> <538E7ABE.4060200@gmail.com>
Date Wed, 4 Jun 2014 12:21:18 +1000
Subject Re: OT: This Swift thing
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10667.1401848481.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1401848481 news.xs4all.nl 2843 [2001:888:2000:d::a6]:51761
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:72576

Show key headers only | View raw


On Wed, Jun 4, 2014 at 11:47 AM, Michael Torrie <torriem@gmail.com> wrote:
> 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

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.

ChrisA

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: OT: This Swift thing Chris Angelico <rosuav@gmail.com> - 2014-06-04 12:21 +1000

csiph-web