I want to point out that I really enjoy the brief discussions on why things are the way they are in Swift.
I got into a grove with the operator overloading and made the assumption that
** was an exponent operator.
I found myself talking through the training and that really helped me with understanding.
I think I’m in the same boat as Paul when it comes to the ternary operators.
I’m very much in the “avoid where possible” camp because even though this code is longer I do find it easier to follow:
I didn’t know that
switch statements read the value they were reading once as compared to the
if statement which would read it every time that it does a comparison.