mersan
11/13/2018, 11:51 AMkotlin.Result
class set to inline class? what's the point of this limitation that we cannot use it as return type?Andreas Sinz
11/13/2018, 11:58 AMThe 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.
karelpeeters
11/13/2018, 12:20 PM>
symbol, like this:
The rationale behind these limitations is that future ...
mersan
11/13/2018, 1:08 PM