Paul Hudson He recently posted a question about Swift Language on twitter,quite interesting
All three match - how many ways can you think of to make this true in Swift?
You’ll learn by trying 👍
PS:Code or it didn’t happen 😘
My idea is to change the way “get” works
Several methods have been collected so far
Lots of folks are using operator overloading, so for them here’s hard mode !😈
If you know more ways, please let me know in the comments below～