When defining an operator function (like when implementing the Hashable protocol...
Puppethead @puppethead@ieji.de
When defining an operator function (like when implementing the Hashable protocol), is the preferred style a space between the operator and open parenthesis, or no space?
static func == (lhs: GridPoint, rhs: GridPoint) -> Bool
versus
static func ==(lhs: GridPoint, rhs: GridPoint) -> Bool
Apple shows the space in documentation, but that seems inconsistent with normal function declarations. I see both ways used.
(This post could have been a poll 😀 )