Swifty Tips ⚡️
Göksel Köksal

Nice article, I think I’d agree with most of the things you say!

I’ve got one suggestion under “9 — avoid _ misuse”; at the ‘Unused result’ code snippet. In that specific context (removing a car) I’d rather decorate the function removeCar(_:) with a @discardableresult if the return value is a Bool (and not the removed Car for example). This lets you avoid the _ altogether if it’s really not needed.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.