Declaring Array Types
Array types are no longer declared in front of the brackets:
Rather, they go inside:
Half-Closed Range
The two simple dots denoting a half-closed range didn’t last long:
The “off-by-one” operator now demands a left-angle bracket:
Dictionary Sugar
Similar to the changes made in array declarations, new sugar was added to dictionary declaration. Previously, one could only declare an empty dictionary as shown below:
But now, key and value types can be declared within brackets (and without the need to specify Dictionary):