C experiments in Swift
github.com
github.com
"It is possible to do it all in Swift making it a versatile language unlike Java or Scala"
Anybody cares to elaborate on that?
Doesn't the "new" keyword always heap-allocate? I guess modulo optimizations like "this is a value-class that won't escape the scope of the method: "in-line" it" (if that is a technique that is in use/possible). Also, it seems reasonable that an array of primitive values would actually be represented as a contiguous piece of memory in the heap.
Sorry if that wasn't what you asked about.