Skip to content

Commit

Permalink
Typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
aplteam committed Sep 26, 2018
1 parent f237e0a commit 0b83d1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

## Overview

Dyalog uses numbers to represent errors. Those errors are accessible via `⎕EN`. However, when one want to specify an error with a `:Trap` or a `⎕TRAP` statement then one must use integers.
Dyalog uses numbers to represent errors. Those errors are accessible via `⎕EN`. However, when one wants to specify an error with a `:Trap` or a `⎕TRAP` statement then one must use integers.

Although a seasoned programmer will over time memorize the most important error numbers, the unusual ones will escape her.
Although a seasoned programmer will over time memorize the most important error numbers, the unusual ones will escape her, not to mention newbies.

There is a better solution to this: using symbolic names which are effectively constants (strictly speaking read-only variables) carrying the integer. That's that the `EventCode` class is for: it offers symbolic names for all trappable events up to and including version 15.0.
There is a better solution to this: using symbolic names which are effectively constants (strictly speaking read-only variables) carrying the integer. That's what the `EventCode` class is for: it offers symbolic names for all trappable events up to and including version 17.0.

Examples:

Expand Down

0 comments on commit 0b83d1e

Please sign in to comment.