Prepare for a relatively fast pace in this chapter. We will speed through topics related to types in Swift and delve in more detail into those that are likely to be less familiar to an ActionScript developer. The chapter starts with an overview of Swift’s type policy and goes briefly over some of its primitive types. Then we go a little deeper and explore optional types. Expect weird syntax there. Moving on, we see how to query an object’s type and how to type cast. We finish with a few useful references ...
© Radoslava Leseva Adams and Hristo Lesev 2016
Radoslava Leseva Adams and Hristo Lesev, Migrating to Swift from Flash and ActionScript, 10.1007/978-1-4842-1666-8_19
19. Types
Radoslava Leseva Adams1 and Hristo Lesev2
(1)London, UK
(2)Kazanlak, Bulgaria
Get Migrating to Swift from Flash and ActionScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.