Swift’s operators are mostly similar to that of common programming languages, but there were a few that stood out for me which I thought I should write about today.
Today was the hardest to remain consistent with my daily posts or perhaps I should say yesterday as I’m a an hour late. but here’s what I’ve learned about swift.
Today was a reminder of the importance of taking time to rest. Not having enough sleep finally caught up with me and impeded my productivity during the day. So I’m going to catchup on some sleep but before I do, here’s what I’ve learned about swift’s enums.
Though there’s nothing exceptionally new to me about how Swift deals with exceptions, I do have to say that I prefer it’s way of dealing with functions that throw an error. I find them to be easier to read compared to languages like java.
Understanding how a language handles data is essential to using it in practice. So I thought this would be the best place for me to start. Swift uses variables and constants to store values of a particular type. Values stored in constants can’t be changed whereas variables can be changed or mutated.