Swift to C++

So having just watched a great webcast from O’Reilly on Swift (and certainly having plenty more to learn):

  • Protocols == Pure Virtuals
  • Generics == Templates
  • Extensions == Class Derivation/Extension/Overloading on steroids
  • Operator Overloading == Operator Overloading, again on steroids.
  • Closures == well, nothing innate, but pretty much same thing as Python Closures

Curiously, and I wonder if it causes problems, that there is no “protected” equivalent. Also from a purely base syntactic level it looks remarkably Scala-like though it falls away quickly on analysis.

Interesting language, definitely. Topic reminds me of Jason Bock’s “If Carpenters Were Hired Like Programmers”.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *