Preslav's Thoughts and Ramblings


  • 23 July 2017

    Properties in Swift: How to Avoid Shooting Yourself in the Foot

    Swift provides several constructs which make writing code a more fluid experience, with less boilerplate. Sometimes this succinctness of syntax comes at a potential cost though. One such aspect are properties, and more specifically, property initialisation. A small difference in the syntax might result in unnecessary memory consumption, unexpected state...