Open ceremcem opened 2 years ago
Isn't LiveScript dead now? It hasn't had a release in over 2.5 years at this point.
Definitely. For the issue at hand, I don't think you can really expect to be able to use operators as object keys. What you wrote is basically
a =
+(: "x")
-(: "y")
Thanks. Shouldn't this behavior changed? Why would somebody use an operator as an operator while defining an object?
Why would somebody use an operator as an operator while defining an object?
You're not defining an object, you're defining an array, like this:
a =
1
2
The fact that you can treat a label as an expression is definitely a bit weird, but it's not only in this case:
$ lsc -bce '+:1'
+(function(){
_: return 1;
}());
Is this behavior expected:
I would definitely expect the following output: