Re:Kaffeine: extended Javascript
by vnorby on Thursday May 12, 2011 @04:40AM
(#2539848)
Why use this over coffeescript?
[ Parent
| on HN ]
Agreed, 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 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.
I've often wondered what 'little' in the CoffeeScript tag line meant ? Do you mean that it's terse ?
Don'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
I like the fact that CoffeeScript does some magic for me. I know exactly 'what' the magic does, and I don't mind CoffeeScript taking care of it for me.
Ruby dev eh? ;)
a) 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/