Author Archives: Ayush Sharma

Swift Memory Safety

  Memory Safety in Swift  Swift monitors risky behaviour that may occur in the code. For example, Swift ensures that variables are introduced before they’re utilized, likewise, memory isn’t accessed once its deallocated, and array indices are checked for out-of-bounds errors. Swift additionally guarantees that multiple access to a similar region of memory doesn’t conflict, Continue Reading »

Swift Generics

Generics are simple yet one of the most powerful features of Swift programming language. Generic code enables us to write flexible and reusable functions that can work with any data type. Most of the Swift standard library is written using generics code. We have been using generic in our projects for a long time without Continue Reading »