Skip to content

Commit 0ff4b6e

Browse files
Maraclaude
andcommitted
🔧 final docs polish for v0.5.0
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 59caf38 commit 0ff4b6e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/migration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Moving from `Result<T, E>` to `Imperfect<T, E, L>`. You don't have to convert ev
1313

1414
The two empty cells on the left are the argument. `Result` doesn't have a row for partial success or honest failure. That's why terni exists.
1515

16+
Convenience constructors: `.success(v)`, `.partial(v, l)`, `.failure(e)` (zero loss), `.failure_with_loss(e, l)` (carries accumulated loss).
17+
1618
`Failure(E, L)` carries accumulated loss — the cost of getting here. `Result::Err` carries only the error. The loss is information you can't recover from the error alone: how much work happened before the failure, how close you were, what was already spent.
1719

1820
## Step 1: Choose a Loss type

0 commit comments

Comments
 (0)