Avatar
omochimetaru 5/13/2019 6:55 AM
On reflection, I have to say that I like this solution best. It is very similar in flavor to maybeNilObject?.someMethod() I might even argue that it should only be used for Void return types, just like that method call becomes essentially void if the object is nil. Kurt...
6:55 AM
doIt { [guard weak self] in //... code }
6:55 AM
↑この記法のアイデア初めて見たけどかなり良くない?