beyondtao / gitalk

0 stars 0 forks source link

Swift static func == (lhs: XXX, rhs: XXX) -> Bool #16

Open beyondtao opened 4 months ago

beyondtao commented 4 months ago

https://blog.iostao.com/2023/12/swift_static_funclhs_rhs/

It’s been a long time since I last wrote code. While I was programming, I encountered something I don’t understand. Why is the symbol ‘==’ used in function names?" static func == (lhs: Person, rhs: Person) -> Bool {