Overview of all known innovations of Swift 2.0

This is an overview of all known innovations of Swift 2.0 so far.


Recursive nested functions

Swift 1.0 to 2.0 Migrator

Improved option sets

Markdown in comments

Faster debug mode

Objective-C generics

Error handling model

C function pointer APIs

Availability checking

Shorter compile time

Mutability warnings

Pattern matching in "if"

Multi-payload enums

New playgrounds

@testable

do{}

Parallelized WMO

Protocol extensions

Faster runtime

defer

repeat

Nullability in Objective-C

Synthesized "headers" in Xcode

guard

SIMD support


If you find new features feel free to add them here.

Have you checked the Xcode7 Release Notes? It contains all changes...

Ok, thank you for the information. I thought they are not avaiable for people who are not paying for the developer programm. Here is the link for those who didn't see it before seeing this post: http://adcdownload.apple.com/WWDC_2015/Xcode_7_beta/Xcode_7_beta_Release_Notes.pdf

I have noted the set options. Great improvement.


But I am deceived by the syntax, which is very cumbersome.


For union, one need to write : set1.union(set2) and add a sort().

It would be much better to be able to write : set1 + set2.


My dreamed syntax would be (as in old Pascal):

union : set1 + set 2

intesection : set1 * set2 or set1 & set2

substract : set1 - set2

exclusive or could be : set1 / set2 or set1 | set2


for comparison:

we have equal ==, so

isSubsetOf : set1 <= set2

isStrictSubsetOf : set1 < set2

isSupersetOf : set1 >= set2 ; BTW, we have not isStrictSupersetOf ?

isDisjointWith : more difficult, but we could have a test that intesect is not empty : set1 ?* set2 or isEmpty(set1 * set2) or (set1 * set2)?

You have the option to make your own custom operators.

Overview of all known innovations of Swift 2.0
 
 
Q