Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.

Commit

Permalink
Address a few typos;
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjbvr committed Apr 16, 2018
1 parent 75b63c6 commit 7f69a5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -8,7 +8,6 @@ groups:
- [Value types](valuetypes.md) defines an extension to the core
proposal to support new kinds of values, akin to numbers and
strings.
- [SIMD](simd.md) defines how the proposed SIMD spec fits into all this.
- [OO types](ootypes.md) defines an extension to allow
typed objects to (more) accurately describe the kinds of
things one can describe in Java or C#.
Expand All @@ -23,6 +22,6 @@ groups:
exists on the design.


## Interested?
## Interested?

Join the IRC channel at #typed-objects on irc.mozilla.org (irc://irc.mozilla.org/typed-objects).
8 changes: 4 additions & 4 deletions core.md
Expand Up @@ -101,7 +101,7 @@ definitions: either *primitive* or *struct type definitions*.

#### Options

Tje optional `options` parameter can influence certain aspects of a struct's semantics.
The optional `options` parameter can influence certain aspects of a struct's semantics.
Options are specified using fields on an object passed as the `options` parameter.

##### Option: defaults
Expand Down Expand Up @@ -358,7 +358,7 @@ throws a `TypeError`.
## Assigning fields

When you assign to a field, the backing store is modified accordingly.
As long as the rhs has the required structure, the process is precisely the same as when
As long as the right hand side has the required structure, the process is precisely the same as when
providing an initial value for a typed object. This means that you can write things like:

```js
Expand All @@ -382,7 +382,7 @@ line.to = {x: 22}; // Throws.
The rationale for this behavior is that both alternatives - leaving absent fields
unchanged or resetting them to their default values - are very likely to cover up
subtle bugs. This is especially true when gradually converting an existing code base
to using typed objects. OTOH, ignoring additional fields on the source object doesn't
to using typed objects. On the other hand, ignoring additional fields on the source object doesn't
have the same issues: all fields on the target instance are set to predictable values.

If a field has primitive type, then when it is assigned, the value is
Expand Down Expand Up @@ -410,7 +410,7 @@ adding a dynamic property to the instance. Essentially all struct type instances
as though `Object.preventExtensions()` had been invoked on them.

*Rationale*: The canonicalization rules described
[below](#canonicalization-of-typed-objects--equality) mean that structs don't have a way
[below](#canonicalization-of-typed-objects-and-equality) mean that structs don't have a way
to add dynamic properties to them: they would have to be associated with the starting
offset of the struct in the underlying buffer because the struct itself is just a fat pointer
to that location. Only for structs that are not embedded in other structs would it be
Expand Down
2 changes: 1 addition & 1 deletion valuetypes.md
Expand Up @@ -185,7 +185,7 @@ distinct sets of value types. This means you can freely add methods to
value types that you define without fear of stomping on somebody
else's value type.

On the other hand, if libraries with to interoperate, they can do so
On the other hand, if libraries wish to interoperate, they can do so
via the symbol registry. Similarly, value types that should be
equivalent across realms can be achieved using the global symbol
registry.
Expand Down

0 comments on commit 7f69a5a

Please sign in to comment.