Swifty Tips ⚡️
Göksel Köksal
2.2K18

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.