4 ms·
Why use this over coffeescript?
by vnorby 15y ago
Why use this over coffeescript?
- BasDirks 15y agoAgreed, CoffeeScript is much more extensive, and in most cases (from what I can see) prettier. Kaffeine piping seems cute though. Maybe the author could join forces with the CoffeeScript project? Note on CoffeeScript: it took me _one_ .coffee script to get used to the syntax, and I'm never ever gonna write vanilla JS again if possible.
- weepy 15y agoDon't think that CoffeeScript is much more extensive - Kaffeine has most of the features. Other advantage is that the output Javascript is very similar to the input, unlike Coffee where there's various implied closures and magic T_T
- jashkenas 15y agoweepy is actually a contributor to CoffeeScript from the early days. Kaffeine represents his take on what a little language that targets JS should look like.
- nibnab 15y agoI've often wondered what 'little' in the CoffeeScript tag line meant ? Do you mean that it's terse ?
- faceplant 15y agoa) does line-for-line output so it's easier to debug b) can handle normal JavaScript, so it melds with existing code c) progressive enhancement, adopt features at your own pace d) the option to shadow variables using var e) declared function support AFAIK the creator did work on CoffeeScript for a while but decided to go in a different direction. There are plenty of different alternative JavaScript dialects out there, from new ones like Kaffeine to ports of popular languages. http://altjs.org/ http://altjs.org/