قالب وردپرس درنا توس
Home / Apple / Michael Tsai – Blog – Dynamic equality control and equality

Michael Tsai – Blog – Dynamic equality control and equality



Note that the arguments for == are defined as Even instead of Equatable . This has some implications and benefits […] […]

The use of Self as in Equatable 's definition limits how Equatable can be used. You cannot declare collections or variables as a protocol type that you can in Objective-C.

[…]

Many JSONSerialization s jsonObject s. For testing, you may have to compare the output of these methods to each other. You can quickly find that you cannot […]


Source link