Closed 3lvis closed 4 years ago
Hello Alex! Haven’t had more people pointing this was an issue for them and it’s quite an abrupt change to make. I’m sorry I didn’t communicate this more clearly before. Running an open source project means making a lot of compromises and unless this is a wide problem I would prefer to reduce the amount of breaking changes.
@3lvis Result
is in Swift standard library since Swift 5. It's very common type and recommended "swifty" way to return values in opposite to classic ObjC way. You just invented it early than it was introduced in Swift. Do you really think that such a common thing will not conflict with Swift standard type forever? Well, this is up to you, but it looks strange.
You say no one had a problem? So maybe they are not using Result
.
For example, I rarely use UInt16
, and if someone “invented” it in their library, I would not have problems, I would not even know about it. But does this mean that using type names that conflict with the standard library is good practice?
I'm revisiting the PR, doesn't seem like it would cause any breaking changes :) https://github.com/3lvis/Networking/pull/259
@3lvis I think so too. :) Thanks!
Released as 5.0.2, thank you!
@3lvis Thank you for the great library!
@3lvis Good example of problem resolving:
PROFIT!