We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we support this kind of syntax:
obj = b: 2 { a: 1 obj c: 2 }
which will be compiled into something like this:
var _extend = function () { //... } var obj = { b: 2 }; _extend({ a:1 }, obj, { c:2 });
Nested version:
obj1 = b: 2 obj2 = e: 5 { a: 1 obj1 c: d: 4 obj2 }
which will be compiled into:
var _extend = function () { //... } var obj1 = { b: 2 }, obj2 = { e:5 }; _extend({ a:1 }, obj, { c: _extend({d: 4}, obj2) });
obj doesn't have to be a variable, it can also be a literal (array, object, etc). Is this idea feasible?
obj
I see CS currently compiles this
fn a:1 obj b:2
into this
fn({ a: 1 }, obj, { b: 2 });
I'm not sure if it's OK to break this compatibility, but I think it would be really cool if we could "interpolate" into object literals
The text was updated successfully, but these errors were encountered:
Duplicate of #1632
Sorry, something went wrong.
No branches or pull requests
Can we support this kind of syntax:
which will be compiled into something like this:
Nested version:
which will be compiled into:
obj
doesn't have to be a variable, it can also be a literal (array, object, etc). Is this idea feasible?I see CS currently compiles this
into this
I'm not sure if it's OK to break this compatibility, but I think it would be really cool if we could "interpolate" into object literals
The text was updated successfully, but these errors were encountered: