A hack for fixed-size arrays in Swift

Swift doesn’t have a built-in type for fixed-size, stack-allocated arrays. The standard library uses code generation to work around this limitation for internal use. Read more

Similar

Initializers in Swift

Let’s take a look at one of the core aspects of object-oriented programming — initialization. What characteristics should an initializer ideally have, and what sort of techniques could be useful in order to keep our initializers simple and predictable? (more…)

Read more »