This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template recoverable: -> | |
| args: arguments[0].flatten() | |
| "${args[0].value}: ${ utility 'recoverable' } <- ${args[0].value}" | |
| my_async_fn: (err, result) -> | |
| .. code here .. | |
| recoverable my_async_fn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| obj: { | |
| i_am_a_named_fn: -> yes | |
| i_still_have_a_name: -> (yes) | |
| i_have_no_name: (-> yes) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/grammar.coffee b/src/grammar.coffee | |
| index 81d5b04..69df6d8 100644 | |
| --- a/src/grammar.coffee | |
| +++ b/src/grammar.coffee | |
| @@ -135,12 +135,25 @@ grammar: { | |
| o "Assignable ASSIGN Expression", -> new AssignNode $1, $3 | |
| ] | |
| - # Assignment when it happens within an object literal. The difference from | |
| - # the ordinary **Assign** is that these allow numbers and strings as keys. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { get a: -> @a } | |
| { | |
| get a: function a() { | |
| return this.a; | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [stan@psp-stan-arch coffee-script]$ bin/coffee -ce 'a[-1]' | |
| var _a; | |
| (_a = a)[-1 + _a.length]; | |
| [stan@psp-stan-arch coffee-script]$ bin/coffee -ce 'a?[-1]' | |
| var _a, _b, _c; | |
| (_a = a) == undefined ? undefined : ((_c = _a)[-1 + _c.length]); | |
| [stan@psp-stan-arch coffee-script]$ bin/coffee -ce 'a?[-1]?[-1]' | |
| var _a, _b, _c, _d, _e, _f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [left[0...1], right[0..1]]: [right[0..1], left[0...1]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [stan@psp-stan-arch coffee-script]$ bin/cake build:full | |
| sys.exec has moved to the "child_process" module. Please update your source code. | |
| Error: childProcess API has changed. See doc/api.txt. | |
| at EventEmitter.createChildProcess (node.js:11:11) | |
| at run (eval at <anonymous> (/home/stan/public/coffee-script/lib/coffee-script.js:57:55)) | |
| at Object.action (eval at <anonymous> (/home/stan/public/coffee-script/lib/coffee-script.js:57:55)) | |
| at invoke (/home/stan/public/coffee-script/lib/cake.js:49:26) | |
| at /home/stan/public/coffee-script/lib/cake.js:73:17 | |
| at node.js:394:21 | |
| at node.js:813:9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn: -> | |
| var1: arguments[0] if arguments.length |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| response:{size:0} | |
| size: (chunk) -> | |
| alert "r.size: " + response.size | |
| alert "c.length: " + chunk.length | |
| alert "r.size + c.length: " + (response.size + chunk.length) | |
| size 'Hello' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Array.prototype.slice.call( | |
| (Object.prototype.toString.call(source) !== "[object Array]") ? (_a = source.toString().split("")) : (_a = source), | |
| (typeof from !== "undefined" && from !== null) ? from < 0 ? (from = from + _a.length) < 0 ? 0 : from : from : 0, | |
| (typeof to !== "undefined" && to !== null) ? (to = to < 0 ? to + _a.length : to) < 0 ? (to = from) : to > _a.length ? (to = _a.length) : to : _a.length | |
| ); |