Skip to content

Commit

Permalink
Fix grammar error
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcomedia authored Aug 4, 2016
1 parent 4850bca commit 6057b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types & grammar/ch4.md
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ Wouldn't you generally agree that we simplified the type conversion here to redu

Some would argue, at least in some circumstances, yes. But I think an equal argument can be made of many other circumstances that here, the simplification **actually aids in the readability of the code** by abstracting or hiding away such details, either in the language itself or in our own abstractions.

Undoubtedly, behind the scenes, somewhere, the intermediate conversion step is still happening. But if that detail is hidden from view here, we can just reason about getting `y` to type `SomeType` as an generic operation and hide the messy details.
Undoubtedly, behind the scenes, somewhere, the intermediate conversion step is still happening. But if that detail is hidden from view here, we can just reason about getting `y` to type `SomeType` as a generic operation and hide the messy details.

While not a perfect analogy, what I'm going to argue throughout the rest of this chapter is that JS *implicit* coercion can be thought of as providing a similar aid to your code.

Expand Down

0 comments on commit 6057b59

Please sign in to comment.