harshil, Littlest Swift pet peeve: I simply cannot declare a variable’s type separately from the default value
🚫 var thing: SomeType = .value
✅ var thing = SomeType.value
harshil, Littlest Swift pet peeve: I simply cannot declare a variable’s type separately from the default value
🚫 var thing: SomeType = .value
✅ var thing = SomeType.value
Add comment