Skip to content

Commit 508f438

Browse files
committed
add section on identifying areas needing improvment
1 parent c9804b1 commit 508f438

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

text/0000-project-error-handling.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ Here is a tenative starting point, subject to change:
4343
- What is the consensus on handling `dyn Error`s? Should it be encouraged or discouraged? Should we look into making `Box<dyn Error...>` implement `Error`?
4444

4545

46+
### Identify pain points in error handling today
47+
48+
- Backtrace capture is expensive, but without one it can be difficult to pinpoint the origin of errors
49+
- unwrap on errors without first converting to a reporting type will often discard relevant information
50+
- errors printing from main have to assume a prefixed `Error: `, sub par control of output format when printing during termination.
51+
- Error trait only exposes 3 forms of context, can only represent singly linked lists for chains of errors
52+
4653
### Communicate current best practices
4754

4855
- Document the consensus.

0 commit comments

Comments
 (0)