Skip to content

Commit 5501df5

Browse files
authored
Merge pull request #14157 from dotty-staging/upload-safer-exceptions-paper
Upload safer exceptions paper
2 parents de42a98 + e373ed3 commit 5501df5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/docs/reference/experimental/canthrow.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: doc-page
3-
title: "CanThrow Abilities"
3+
title: "CanThrow Capabilities"
44
movedTo: https://docs.scala-lang.org/scala3/reference/experimental/canthrow.html
55
---
66

@@ -275,3 +275,8 @@ And it would have many other applications besides: Exceptions are a special case
275275
But even without these additional mechanisms, exception checking is already useful as it is. It gives a clear path forward to make code that uses exceptions safer, better documented, and easier to refactor. The only loophole arises for scoped capabilities - here we have to verify manually that these capabilities do not escape. Specifically, a `try` always has to be placed in the same computation stage as the throws that it enables.
276276

277277
Put another way: If the status quo is 0% static checking since 100% is too painful, then an alternative that gives you 95% static checking with great ergonomics looks like a win. And we might still get to 100% in the future.
278+
279+
For more info, see also our [paper at the ACM Scala Symposium 2021](
280+
https://github.com/lampepfl/dotty/docs/docs/reference/experimental/safer-exceptions.pdf).
281+
282+
Binary file not shown.

0 commit comments

Comments
 (0)