Skip to content

Commit

Permalink
The syntax is not eventual, the send is.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Jul 12, 2019
1 parent 721d151 commit deeece7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ In contrast to *async*/*await*, infix bang is designed to allow the convenient c

Infix bang (*!*) is a proposed operator with the same precedence as dot (*.*), but cannot begin a new line so that automatic semicolon insertion does not change the interpretation of existing code that has prefix bangs (the *not* operator) in it without semicolons.

The **Synchronous Syntax** column describes the analogous synchronous operation on plain objects, while the **Eventual Syntax** introduces the proposed *Promise*-based eventual operations.
The *Promise.prototype* API additions needed for each **Eventual Expansion** are explained in the following section.
The **Synchronous Syntax** column describes the analogous synchronous operation on plain objects, while the **Promise Syntax** introduces the proposed *Promise*-based operations.
The *Promise.prototype* API additions needed for each **Promise Expansion** are explained in the following section.

| Synchronous Syntax | Eventual Syntax | Eventual Expansion |
| Synchronous Syntax | Promise Syntax | Promise Expansion |
|------- | --- | --- |
| `x[i](y, z)` | `x![i](y, z)` | `Promise.resolve(x).post(i, [y, z])` |
| `x.p(y, z)` | `x!p(y, z)` | `Promise.resolve(x).post('p', [y, z])` |
Expand Down Expand Up @@ -150,8 +150,8 @@ Abstract Syntax:

```
Expression : ...
Expression ! [ Expression ] Arguments // eventual send
Expression ! Arguments // eventual call
Expression ! [ Expression ] Arguments // eventual post
Expression ! Arguments // eventual post
Expression ! [ Expression ] // eventual get
Expression ! [ Expression ] = Expression // eventual put
delete Expression ! [ Expression ] // eventual delete
Expand Down

0 comments on commit deeece7

Please sign in to comment.