by mucholove · 5y ago · 0 comments
I did ask the question on Twitter. :)
Not entireley convinced but I’m certainly looking forward to using it.
One more thing—how would you do error handling?
Thinking out loud here: it would be nice if NSObject had a method `isError` that went something like `self isKindOfClass:[NSError class]` so that you could return error in a more clean way. Wonder, what would mpw do?
Another question—how to MPW multiple return items? (My guess is that the return items would be mutable? Like a mutable string. Could work with numbers if you had such a thing as NSMutableNumber.)
I’m sort of looking for what 2nd order and systemics effects `mpw` might expect.
To me, Swift is a bit more annoying with `if let`. Seems like it might provide a benefit, but it’s not so compelling to me. The compile times are so much slower so as to turn me off completely.