SlideShare a Scribd company logo
youhsuan 2019.6.20
What’s new in Swift 5.0
Outline
• [SE-0192] Handling Future Enum Class

• [SE-0200] Enhancing String Literals Delimiters to Support Raw Text

• [SE-0230] Flatten nested optionals resulting from `try?`

• [SR-149] Property observers not triggered on other instances of same class
• [SE-0192] Handling Future Enum Class
● Introduction
● Forzen v.s. Non-forzen enum
● Only affects for C enum and standard library enums
● Nothing changes for user-defined Swift enums
● @unknown naming
● @unknown default (demo)
● User defined “default”
[SE-0200] Enhancing String Literals Delimiters to Support Raw Text
● Delimiters # (pound, Number Sign)
● ( ) -> #( )
● n -> #n
● Customized Escape Delimiters
● Regular expressions
●
[SE-0230] Flatten nested optionals resulting from ‘try?’
● Motivative
[SR-149] Property observers not triggered on other instances of same class

More Related Content

PPTX
Dotnet Conf 2021 - F# and Safe Stack
PDF
Apple’s New Swift Programming Language Takes Flight With New Enhancements And...
PDF
Intro toswift1
PDF
Advanced Swift Updated For Swift 5 Chris Eidhof
PDF
Objective-C to Swift - Swift Cloud Workshop 3
PDF
Swift, functional programming, and the future of Objective-C
PDF
What’s new in Swift 5.2-5.3
PDF
Swift should I switch?
Dotnet Conf 2021 - F# and Safe Stack
Apple’s New Swift Programming Language Takes Flight With New Enhancements And...
Intro toswift1
Advanced Swift Updated For Swift 5 Chris Eidhof
Objective-C to Swift - Swift Cloud Workshop 3
Swift, functional programming, and the future of Objective-C
What’s new in Swift 5.2-5.3
Swift should I switch?

Recently uploaded (20)

PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
Sustainable Sites - Green Building Construction
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
web development for engineering and engineering
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
Well-logging-methods_new................
DOCX
573137875-Attendance-Management-System-original
PPTX
Construction Project Organization Group 2.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
PPT on Performance Review to get promotions
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
additive manufacturing of ss316l using mig welding
R24 SURVEYING LAB MANUAL for civil enggi
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Sustainable Sites - Green Building Construction
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
web development for engineering and engineering
Foundation to blockchain - A guide to Blockchain Tech
CH1 Production IntroductoryConcepts.pptx
Well-logging-methods_new................
573137875-Attendance-Management-System-original
Construction Project Organization Group 2.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT on Performance Review to get promotions
Operating System & Kernel Study Guide-1 - converted.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Ad
Ad

What's new in Swift 5.0

  • 2. Outline • [SE-0192] Handling Future Enum Class • [SE-0200] Enhancing String Literals Delimiters to Support Raw Text • [SE-0230] Flatten nested optionals resulting from `try?` • [SR-149] Property observers not triggered on other instances of same class
  • 3. • [SE-0192] Handling Future Enum Class ● Introduction ● Forzen v.s. Non-forzen enum ● Only affects for C enum and standard library enums ● Nothing changes for user-defined Swift enums ● @unknown naming ● @unknown default (demo) ● User defined “default”
  • 4. [SE-0200] Enhancing String Literals Delimiters to Support Raw Text ● Delimiters # (pound, Number Sign) ● ( ) -> #( ) ● n -> #n ● Customized Escape Delimiters ● Regular expressions ●
  • 5. [SE-0230] Flatten nested optionals resulting from ‘try?’ ● Motivative
  • 6. [SR-149] Property observers not triggered on other instances of same class