|
|
|
|
|
by troupo
1001 days ago
|
|
The ugly solution is Swift's if let x = x which is literally the same check, but in a more verbose manner. Yes, compilers should be able to help in this and many other cases, and not just give up and force the programmer to do all the unnecessary manual work |
|