Skip to content

Commit d0dfb0c

Browse files
committed
Clarify version 1.5 lifted result stdlib restrictions in README
1 parent fb3a80d commit d0dfb0c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,15 @@ doc.
187187
> [Ilmir Usmanov, JetBrains][stdlib-result-half-baked]
188188
189189
This library was created in Oct 2017. The JetBrains team introduced `kotlin.Result` to the standard library in version
190-
1.3 of the language in Oct 2018 as an experimental feature. Initially, it was limited to internal use only as it was
190+
1.3 of the language in Oct 2018 as an experimental feature. Initially, it could not be used as a return type as it was
191191
"intended to be used by compiler generated code only - namely coroutines".
192192

193-
Less than one week after stating that ["we do not encourage use of kotlin.Result"][stdlib-result-half-baked], the
193+
Less than one week after stating that they ["do not encourage use of kotlin.Result"][stdlib-result-half-baked], the
194194
JetBrains team announced that
195-
they ["will allow returning kotlin.Result from functions"][stdlib-result-return-type-lifted]. This came at the time when
196-
they were considering guiding users towards contextual receivers to replace the Result paradigm. In later years, the
197-
context receivers experiment was superseded by the more recent context parameters, which are still in an experimental
198-
state.
195+
they ["will allow returning kotlin.Result from functions"][stdlib-result-return-type-lifted] in version 1.5, releasing
196+
May 2021 — three years after its introduction in 1.3. At this time, the team were deliberating on whether to guide users
197+
towards contextual receivers to replace the Result paradigm. In later years, the context receivers experiment was
198+
superseded by context parameters, which are still in an experimental state.
199199

200200
Michail Zarečenskij, the Lead Language Designer for Kotlin, announced at KotlinConf 2025 the development of
201201
["Rich Errors in Kotlin"](https://2025.kotlinconf.com/talks/762779/), providing yet another potential solution for error

0 commit comments

Comments
 (0)