© 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_22

22. New and Different Concepts

Radoslava Leseva Adams and Hristo Lesev2

(1)London, UK

(2)Kazanlak, Bulgaria

In this chapter we open the door to four topics that either have no counterpart in ActionScript or that Swift redefines in a way that can make them seem new to an ActionScript developer. Enumerations and generics fall under the first category. Subscripts and closures, although present in ActionScript, are taken to a whole new level in terms of functionality and expressiveness. Curious? I was . . .

Enumerations

An enumeration or enum is a type that you declare to define a set of names, ...

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.