Is 1.4's `Result` binary compatible with 1.3.70's?...
# stdlib
j
Is 1.4's
Result
binary compatible with 1.3.70's? Or, put another way, how dangerous would it be to ship a library which uses
Result
with 1.3.70 in anticipation of it being available for use in 1.4?
e
Using
Result
is stable. Returning
Result
is not (you’ll have to opt-in into experimental inline classes that will be changing in the future)
There are some changes to inline classes we already know we’ll do (like ABI for returning them from suspend functions), but there might be other changes we don’t know about yet.
j
Thanks! Was hoping to add it to Retrofit so you could make your API endpoints return a
Result<Body>
but that firmly falls into what would break
g
Can this happen now? 👀
j
Probably! Want to file an issue?
👍 1
g