Swift also has value types, and optimization passes to promote heap-allocated objects and closures to the stack where possible using escape analysis.
Swift also has value types, and optimization passes to promote heap-allocated objects and closures to the stack where possible using escape analysis.