Skip to content

Commit 77ee782

Browse files
committed
typos, grammar
1 parent cc3b570 commit 77ee782

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
## Preface
5454

55-
Often, a developer will use more than one programming language at a certain timeframe. Switching back and forth between languages can come with some overhead. These context switches can also result in bugs. For instance, if you switch back and forth between Python and Javascript, there's a likelihood you'll mistake evaluation of an empty array between truthy and falsey. Similarly, if you switch back and forth between Go and Javascript, there's a likelihood you'll make a mistake `switch` statements default behavior of break/fallthrough. Outlining the differences between languages can help mitigate these potential issues, and make it easier to transition back and forth.
55+
Often, a developer will use more than one programming language at a certain timeframe. Switching back and forth between languages can come with some overhead. These context switches can also result in bugs. For instance, if you switch back and forth between Python and Javascript, there's a likelihood you'll mistake evaluation of an empty array between truthy and falsey. Similarly, if you switch back and forth between Go and Javascript, there's a likelihood you'll mistake `switch` statements default behavior of break/fallthrough. Outlining the differences between languages can help mitigate these potential issues, and make it easier to transition back and forth.
5656

5757
This document compares between two programming languages, Golang (or "Go") and ECMAScript (or "Javascript" / "JS"). The merits of this pairing is the popularity of these languages. That's it. They are not similar, in fact, they are quite different. Javascript is an event driven, dynamically typed and interpreted language, while Go is a statically typed and compiled language.
5858

@@ -213,18 +213,15 @@ go func() {
213213
## (D) String literals
214214
**JS**
215215

216-
strings are initialized with single quotes (`'hello'`) or double quotes (`"hello"`). Most coding styles prefer the single quotes variation.
216+
Strings are initialized with single quotes (`'hello'`) or double quotes (`"hello"`). Most coding styles prefer the single quotes variation.
217217

218218
**Go**
219219

220-
strings are initialized with double quotes (`"hello"`) or raw string literals with backticks (``` `hello` ```)
220+
Strings are initialized with double quotes (`"hello"`) or raw string literals with backticks (``` `hello` ```)
221221

222222
## (S) Comments
223223
Both languages use the same `/* block comments */` and `// line comments`.
224224

225-
226-
227-
228225
# Variables
229226
## (D) Values, Pointers, References
230227

0 commit comments

Comments
 (0)