Follow on Google News News By Tag Industry News News By Location Country(s) Industry News
Follow on Google News | Swift 4.0, programming language, Review the newSwift 4 brings changes and makes developer's life easier. Read a full review of updates with examples
By: Sigma Software Inc. 1. ONE-SIDED RANGES RangeExpression protocol was added to simplify the creation of methods that use ranges. Also, the standard library can detect start and end indices of ranges from now, so you don't need to explicitly specify them [SE-0172] (https://github.com/ 2. STRINGS AND CHARS UPDATES Multi-line String Literals The multi-line string literals come in handy when you need to build long formatted texts for UI or XML or JSON messages. In Swift 4, you can do this using three double-quotes (""") [SE-0168](link is external): 3. PRIVATE ACCESS MODIFIER FOR EXTENSIONS Swift 4 realizes the original intent by sharing the same access control scope between a type and any extension of said type. This only holds true within the same source file [SE-0169](link is external) (https://github.com/ 4. SMART KEYPATHS Unlike the string-based key paths in Cocoa, Swift key paths are strongly typed. Now to create a key path, you simply use a back-slash followed by the property you're interested in: Read full article: https://goo.gl/ End
Account Phone Number Disclaimer Report Abuse
|
|