Skip to content

Commit 0712ff1

Browse files
committed
Add more stdlib examples to README
1 parent 9cb1f8c commit 0712ff1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,9 @@ it as a return type for generic business logic.
216216
- The Kotlin team admits its "half-baked" and discourages use for "domain-specific error conditions".
217217
- The Kotlin team do not use it, and are sending increasingly mixed messages on how users should be dealing with
218218
domain-specific errors.
219-
- The Kotlin team keep inventing their own domain-specific versions, e.g. [`ChannelResult`][ChannelResult]) in the
220-
coroutines library, thus proving the need for such a type but lacking commitment to a standardised solution.
219+
- The Kotlin team keep inventing their own domain-specific
220+
versions, [one][ChannelResult], [two][LineStatusTrackerManager], [three][LazyLoadingAccountsDetailsProvider],
221+
[four][VsCodeVisionProvider], thus proving the need for such a type but lacking commitment to a standardised solution.
221222
- It was initially unusable as a return type and usage was discouraged. This restriction was then lifted and users
222223
guided towards context receivers. Context receivers were abandoned in favour of the (still experimental) context
223224
parameters. Rich errors have been proposed to supersede context parameters by providing a language-level solution.
@@ -359,6 +360,9 @@ information and licensing terms.
359360
[stdlib-result-keep]: https://github.com/Kotlin/KEEP/blob/master/proposals/stdlib/result.md#error-handling-style-and-exceptions
360361
[stdlib-result-runCatching]: https://github.com/JetBrains/kotlin/blob/v2.2.20/libraries/stdlib/src/kotlin/util/Result.kt#L144
361362
[ChannelResult]: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.channels/-channel-result/
363+
[LineStatusTrackerManager]: https://github.com/JetBrains/intellij-community/blob/d73a081b09fcb0f53308352a57ad54c0721f0443/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/LineStatusTrackerManager.kt#L1406
364+
[LazyLoadingAccountsDetailsProvider]: https://github.com/JetBrains/intellij-community/blob/d73a081b09fcb0f53308352a57ad54c0721f0443/platform/collaboration-tools/src/com/intellij/collaboration/auth/ui/LazyLoadingAccountsDetailsProvider.kt#L92
365+
[VcsCodeVisionProvider]: https://github.com/JetBrains/intellij-community/blob/d73a081b09fcb0f53308352a57ad54c0721f0443/platform/vcs-impl/lang/src/com/intellij/codeInsight/hints/VcsCodeVisionProvider.kt#L287
362366
[CancellationException]: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.coroutines.cancellation/-cancellation-exception/
363367
[rich-hickey-maybe-not]: https://www.youtube.com/watch?v=YR5WdGrpoug&t=657s
364368

0 commit comments

Comments
 (0)