I wonder how the value types in Swift (Int, Float...) are implemented to support optional binding (\"?\"). I assume those value types are not allocated on the heap, but on t
Optionals are implemented as enum type in Swift.
enum
See Apple's Swift Tour for an example of how this is done:
enum OptionalValue { case None case Some(T) }