Skip to content

Commit

Permalink
Fixed a few typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Oct 26, 2023
1 parent a5e6fa0 commit 0e012a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ Most documentation is written in `Locale`, as all of it needs to be localized. B

## Immutability

Wherever possible, Wordplay uses immutable data structures and pure functions. That means that we generally do not define state and mutate it in place, but rather take existing state, and clone and modify it. This drastically reduces the number of places where state lives, simplifying debugging, reducing defects, and making testing easier.
Wherever possible, Wordplay uses immutable data structures and pure functions. That means that we generally do not define state and mutate it in place, but rather take existing state, and make a clone with modified values. This drastically reduces the number of places where state lives, simplifying debugging, reducing defects, and making testing easier.

One major exception to this is Svelete components, which often have much internal state, and dependencies on global state. These external dependencies are explicitly defined in component initialization as Svelte `context`.
One major exception to this is Svelte components, which often have much internal state, and dependencies on global state. These external dependencies are explicitly defined in component initialization as Svelte `context`.

Another major exception is `Evaluator`, since it has to manage substantial state to evaluate programs.

Expand Down

0 comments on commit 0e012a5

Please sign in to comment.