@danielx/civet 0.3.13 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/browser.js +189 -185
- package/dist/main.js +189 -185
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -87,7 +87,8 @@ Things Kept from CoffeeScript
|
|
|
87
87
|
- Optional semi-colons
|
|
88
88
|
- Indentation based block syntax
|
|
89
89
|
- OptionalChain shorthand for index and function application `a?[b]` -> `a?.[b]`, `a?(b)` -> `a?.(b)`
|
|
90
|
-
-
|
|
90
|
+
- `?=` null-coalescing assignment shorthand
|
|
91
|
+
- `@` `this` shorthand `@` -> `this`, `@id` -> `this.id`
|
|
91
92
|
- Prototype shorthand `X::` -> `X.prototype`, `X::a` -> `X.prototype.a`
|
|
92
93
|
- Postfix `if/unless`
|
|
93
94
|
- Block Strings `"""` / `'''`
|
|
@@ -104,8 +105,10 @@ Things Removed from CoffeeScript
|
|
|
104
105
|
- `not` (use `!`)
|
|
105
106
|
- `do` keyword (replaced with JS `do`)
|
|
106
107
|
- `for from` (use JS `for of`)
|
|
108
|
+
- `and=`, `or=` (don't mix and match words and symbols)
|
|
107
109
|
- Array slices `list[0...2]` (use `list.slice(0, 2)`)
|
|
108
110
|
- Slice assignment `numbers[3..6] = [-3, -4, -5, -6]` (use `numbers.splice(3, 4, -3, -4, -5, -6)`)
|
|
111
|
+
- Ranges `[0...10]`
|
|
109
112
|
- Comprensions (a case could be made for keeping them)
|
|
110
113
|
- Iteration expression results
|
|
111
114
|
- Implicit declarations
|