Swift first impressions
Apple has a lot of new developer stuff for us this week. Some miscellaneous early thoughts on their new programming language, Swift:
- A couple of months ago, I wanted something with Soulver’s persistent answers column and also the power of a full programming language, like Matlab. (But please not Excel.) Playgrounds are it.
- Playing around, I find I can do
but not10.intValue
because 'Int' does not have a member named 'intValue'. And then I can not dolet ten = 10 ten.intValue
because 'NSNumber' is not a subtype of 'CDouble'. I don’t know whatpow(ten, 2)
10
is:Int
orNSNumber
? - It seems there’s so much new stuff to learn I might as well switch to Android development.