Amazing?
make an object:
in ESx:
var myObject= {
a: {
b: {
c: {
d: 'some value'
}
}
}
};
in Coffeescript or Livescript: myObject= a: b: c: d: 'some value'
now use it:in ESx:
console.log myObject.b.c.d // crash, myObject.b does not exist
how to prevent? if ( myObject.hasOwnProperty('b') and myObject.b.hasOwnProperty('c') ){
console.log myObject.b.c.d // undefined
}
in Coffeescript or Livescript: console.log myObject.b?.c?.d // undefined
I can write almost a book with too many of such examples. So, NO it's not an amazing language, I wrote for many years in it and it sucks all the way.