coffeescript-repl
coffeescript-repl copied to clipboard
A CoffeeScript interactive console (REPL) as a webpage.
``` coffee> (food for food in ['toast', 'cheese', 'wine']) 'wine' coffee> result = (food for food in ['toast', 'cheese', 'wine']) [ 'toast', 'cheese', 'wine' ] ``` I thought these would...
`$_` seems like an odd choice. In the official REPL (and in node's), the result of the last evaluation is stored as `_`.
All of the `[` and `]` are dropped in the display: ``` coffee> [1,2,3] 1,2,3 coffee> [[1,2,3]] 1,2,3 coffee> [[1,2,3],[4,5,6]] 1,2,3,4,5,6 coffee> [1,[2,[3,4,5,6]]] 1,2,3,4,5,6 ```