1 |
What's new in swift? |
2 |
Countelements() is now count() |
3 |
Macos apps can now use @nsapplicationmain |
4 |
The zip() function joins two sequences |
5 |
The flatmap() method transforms optionals and arrays |
6 |
Closures can now be marked @noescape |
7 |
Cla***es can now have static methods and properties |
8 |
Constants no longer require immediate initialization |
9 |
A new set data structure |
10 |
ımplicit bridging has been reduced |
11 |
Multiple if let bindings |
12 |
Typecasting now includes as! |
13 |
Throwing errors |
14 |
Use the guard keyword for early returns |
15 |
Measuring strings has changed again |
16 |
Use the defer keyword to delay work until your scope exits |
17 |
Mutability warnings |
18 |
Checking apı availability |
19 |
String interpolation can now include string literals |
20 |
++ and -- are deprecated |
21 |
Traditional c-style for loops are deprecated |
22 |
Comparing tuples |
23 |
Tuple splat syntax is deprecated |
24 |
More keywords can be used as argument labels |
25 |
Variable parameters have been deprecated |
26 |
Renamed debug identifiers: #line, #function, #file |
27 |
Stringified selectors are deprecated |
28 |
Compile-time swift version checking |
29 |
All function parameters have labels unless you request otherwise |
30 |
Omit needless words |
31 |
Uppercamelcase has been replaced with lowercamelcase for enums and properties |
32 |
Swifty importing of c functions |
33 |
Verbs and nouns |
34 |
Concrete constrained extensions |
35 |
Generics with nested types |
36 |
Sequences get prefix(while:) and drop(while:) methods |
37 |
Swifty encoding and decoding |
38 |
Multi-line string literals |
39 |
ımproved keypaths for key-value coding |
40 |
ımproved dictionary functionality |
41 |
Strings are collections again |
42 |
One-sided ranges |
43 |
Synthesized equatable and hashable |
44 |
Key decoding strategy for codable |
45 |
Conditional conformances |
46 |
Recursive constraints on a***ociated types |
47 |
Build configuration import testing |
48 |
Target environment testing |
49 |
Flatmap is now (partly) compactmap() |
50 |
Derived collections of enum cases |
51 |
Warning and error diagnostic directives |
52 |
Dynamic member look up |
53 |
Enhanced conditional conformances |
54 |
Random number generation and shuffling |
55 |
Simpler, more secure has***ng |
56 |
Checking sequence elements match a condition |
57 |
ın-place collection element removal |
58 |
Boolean toggling |
59 |
Raw strings |
60 |
A standard result type |
61 |
Customizing string interpolation |
62 |
Dynamically callable types |
63 |
Handling future enum cases |
64 |
Flattening nested optionals resulting from try? |
65 |
Checking for integer multiples |
66 |
Transforming and unwrapping dictionary values with compactmapvalues() |
67 |
ımprovements to synthesized memberwise initializers |
68 |
ımplicit returns from single-expression functions |
69 |
Universal self |
70 |
Opaque return types |
71 |
Static and cla*** subscripts |
72 |
Warnings for ambiguous none cases |
73 |
Matching optional enums against non-optionals |
74 |
Ordered collection diffing |
75 |
Creating uninitialized arrays |
76 |
Key path expressions as functions |
77 |
Callable values of user-defined nominal types |
78 |
Subscripts can now declare default arguments |
79 |
Lazy filtering order is now reversed |
80 |
New and improved diagnostics |
81 |
Multi-pattern catch clauses |
82 |
Multiple trailing closures |
83 |
Synthesized comparable conformance for enums |
84 |
Self is no longer required in many places |
85 |
Type-based program entry points |
86 |
Where clauses on contextually generic declarations |
87 |
Enum cases as protocol witnesses |
88 |
Refined didset semantics |
89 |
A new float16 type |
90 |
Swift package manager gains binary dependencies, resources, and more |