Closed jguddas closed 1 year ago
let x = {
m()
{
if (foo) y
else z
}
}
is already legal JS.
let x = {
a: b
}
is this a labelled statement in a statement block, or an object literal?
You are right, assignable block statements are a bad idea.
Did a quick read through and couldn't find anything about the reasoning behind adding a new keyword.
Back in the day we had lightscript (not as old as coffescript but still old and abandoned now) that could do stuff like this.
Example: lscdiag
How I would expect it to look like without a new keyword: