Skip to content

Commit

Permalink
Tweak README
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jan 7, 2022
1 parent bc2bb0e commit a1569a5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ KeyError(:b)
### Error trace

Consider an example where an error "bubbles up" from a deep stack of function
call:
calls:

```JULIA
julia> using Try
Expand All @@ -51,8 +51,8 @@ julia> f2(x) = f1(x);
julia> f3(x) = f2(x);
```

Since Try.jl represents an error as simple Julia value, there is no information
on the source this error:
Since Try.jl represents an error simply as a Julia value, there is no
information on the source this error:

```JULIA
julia> f3(false)
Expand Down Expand Up @@ -93,10 +93,10 @@ KeyError(:b)
That is to say, the stacktrace is simply attached as "metadata" and
`Try.enable_errortrace()` does not alter how `Err` values behave.

Limitation/implementation details: To eliminate the cost of stacktrace capturing
when it is not used, `Try.enable_errortrace()` is implemented using method
invalidation. Thus, error trace cannot be enabled for `Task`s that have been
already started.
**Limitation/implementation details**: To eliminate the cost of stacktrace
capturing when it is not used, `Try.enable_errortrace()` is implemented using
method invalidation. Thus, error trace cannot be enabled for `Task`s that have
been already started.

### EAFP

Expand Down

0 comments on commit a1569a5

Please sign in to comment.