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


Groups > comp.lang.python > #72572

Re: OT: This Swift thing

Date 2014-06-03 19:47 -0600
From Michael Torrie <torriem@gmail.com>
Subject Re: OT: This Swift thing
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>
Newsgroups comp.lang.python
Message-ID <mailman.10663.1401847530.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 06/03/2014 03:01 PM, Chris Angelico wrote:
> On Wed, Jun 4, 2014 at 6:43 AM, Sturla Molden <sturla.molden@gmail.com> 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.

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


Thread

Re: OT: This Swift thing Michael Torrie <torriem@gmail.com> - 2014-06-03 19:47 -0600

csiph-web