Skip to main content
Top

2016 | OriginalPaper | Chapter

22. New and Different Concepts

Authors : Radoslava Leseva Adams, Hristo Lesev

Published in: Migrating to Swift from Flash and ActionScript

Publisher: Apress

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

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

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Footnotes
1
All this cutting down on syntax because of the cleverness of the compiler reminds me of an old, old joke from Gabrovo (Bulgaria), whose citizens are known to be a bit financially conservative…
A merchant goes to a distant town to sell wheat. Before heading back he walks into a post office and writes the following telegram to send to his wife: “Dear Ana, I sold the wheat profitably. Coming back tomorrow. Yours, Ivan.” He counts the words and decides to lower the cost of the telegram by skipping the first part, as his wife is obviously dear to him. So he shortens the telegram to: “Sold the wheat profitably. Coming back tomorrow. Yours, Ivan.” He looks at the text and thinks “But she knows I always sell with profit . . .” and shortens the telegram further: “Coming back tomorrow. Yours, Ivan.” Eager to lower his expenses, he reasons that of course his wife knows he is coming back shortly, why wouldn’t he?! And the text becomes: “Yours, Ivan.” The merchant looks at this final version, scratches his head, and says to himself, “Well, I am hers and she knows that.” Then he tears the telegram form and walks out of the post office.
 
2
It would be fair to say that the parameter analogy only goes so far: a conventional parameter to a function gets it value at runtime, while a type parameter must be resolved at compile time.
 
3
And let us pretend for a moment that array.indexOf() does not exist in Swift.
 
4
This is, admittedly, the case for all types in ActionScript.
 
Metadata
Title
New and Different Concepts
Authors
Radoslava Leseva Adams
Hristo Lesev
Copyright Year
2016
Publisher
Apress
DOI
https://doi.org/10.1007/978-1-4842-1666-8_22

Premium Partner