coffeescript
coffeescript copied to clipboard
Unfancy JavaScript
_From @edemaine on [2017-03-19 16:09](https://github.com/coffeescript6/discuss/issues/76)_ I'm no expert on Babel, but I saw [this comment](https://github.com/coffeescript6/discuss/issues/12#issuecomment-287604440) by @ArmorDarks: > I think this won't be an issue at all if CS could...
When creating a small `npm` package for something like [`strscan`](https://github.com/sstephenson/strscan-js), what is the modern/CS2/best-practices way to structure the repo? I'm looking for something that has a small `Cakefile` and `src`,...
- `for` with single-expression block containing `undefined`: ``` $ coffee -be 'console.log (for a in [0, 1, 2, 3] then undefined)' [ undefined, undefined, undefined, undefined ] ``` - `for`...
If you accidentally add a colon at the end of a line, like in Python, the CoffeeScript compiler (HEAD) produces rather unhelpful error messages. I ended up spending some time...
I use tabs instead of spaces in my code. I cannot test snippets of my code if there is indentation, because the multi-line mode reads tabs as if you're pressing...
Python has a nifty syntactic sugar for performing stepping in a slice ("[extended slices](https://docs.python.org/2.3/whatsnew/section-slices.html)"), that I think should be added to coffeescript. ``` python foo[3:-5] # takes a slice between...
Lately, Google Dart has been getting some well-deserved flack for a trivial "Hello, world" example generating thousands of lines of JS output. Meanwhile, though, CoffeeScript is generating 3 lines when...
Bug report ### Input Code This shows the source maps the compiler returns for this line. Notice that the variable (`old_presences` in that case) is not being pointed at. ...
Bug report (minor) ### Input Code ```coffee foo = do bar = getBar() indented indented notIndented notIndented ``` ### Expected Behavior Compilation error: unexpected indentation of `indented` on line 3...
The CLI doesn’t currently play nice with [`p`]`npm` `scripts`, when calling one from another… ### Expected Behavior In this contrived, simplified example: ~~~ js // package.json "scripts": { "compile": "coffee...