Swift Protocol Compile Time Check
I always thought that if you just use {get} on a protocol variable, then you can still set it i.e. it doesnβt matter if you give it a setter or not. Thatβs not true. It really depends on which compiler checks come in to place. Compiler checks are different depending on the type you want a variable to be. Can you guess which of the two snippets will compile? Snippet A...