Sorry, may I ask why the `kotlin.Result` class set...
# announcements
m
Sorry, may I ask why the
kotlin.Result
class set to inline class? what's the point of this limitation that we cannot use it as return type?
a
https://github.com/Kotlin/KEEP/blob/master/proposals/stdlib/result.md#limitations:
The rationale behind these limitations is that future versions of Kotlin may expand and/or change semantics of functions that return Result type and null-safety operators may change their semantics when used on values of Result type. In order to avoid breaking existing code in the future releases of Kotlin and leave door open for those changes, the corresponding uses produce an error now. Exceptions to this rule are made for carefully-reviewed declarations in the standard library that are part of the Result type API itself.
👍 1
k
FYI you can do quotes with a
>
symbol, like this:
The rationale behind these limitations is that future ...
👍 1
m
thanks @Andreas Sinz