O'Reilly logo

Migrating to Swift from Flash and ActionScript by Hristo Lesev, Radoslava Leseva Adams

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required