Simo Costa (2018-11-29T08:00:49.000Z)
andrysimo1997 at gmail.com (2018-11-29T08:34:21.387Z)
Thanks for partecipating to this discussion and for your opinions on my proposal. I cannot reply to each one of you now, but I'd like to receive feedback also on the Further Ideas section. Maybe you'll find something interesting. In JS there is no way (please correct me if you find the way) to gather all arguments directly in an object (without passing directly an object obv) like you can easily do with an array. So, to mantain this way to pass the arguments: ``` f(arg1, arg2, arg3); ``` you could do like that to store them into an array: ``` function f(...args){ /* code */ } ``` but something like that won't work if you want to gather them into an obj: ``` function f({...obj}){ /* code */ } ``` My proposal could solve this problem. \ \ P.S. Though you pass an object created on the fly (and this is wath I'd like to avoid): ``` f( { arg1, arg2, arg3 } ); ``` to make that work: ``` function f({...obj}){ /* code */ } ``` you cannot do something like that directly: ``` function f ( { arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 }) { // ... } ``` My proposal theoretically could solve this "problem" too. P.P.S ``` function f( arg1, arg2, arg3 ) { const obj = {arg1, arg2}; const obj2 = {arg3}; //... } ``` You obv could do that, but there are avoidable repetitions: ``` function f( obj.arg1, obj.arg2, obj2.arg3 ) { //... } ``` And maybe something like: ``` function f( obj.{arg1, arg2}, obj2.arg3 ) { //... } ``` could be faster :P
andrysimo1997 at gmail.com (2018-11-29T08:33:09.747Z)
Thanks for partecipating to this discussion and for your opinions on my proposal. I cannot reply to each one of you now, but I'd like to receive feedback also on the Further Ideas section. Maybe you'll find something interesting. In JS there is no way (please correct me if you find the way) to gather all arguments directly in an object (without passing directly an object obv) like you can easily do with an array. So, to mantain this way to pass the arguments: ``` f(arg1, arg2, arg3); ``` you could do like that to store them into an array: ``` function f(...args){ /* code */ } ``` but something like that won't work if you want to gather them into an obj: ``` function f({...obj}){ /* code */ } ``` My proposal could solve this problem. \ \ P.S. Though you pass an object created on the fly (and this is wath I'd like to avoid): ``` f( { arg1, arg2, arg3 } ); ``` to make that work: ``` function f({...obj}){ /* code */ } ``` you cannot do something like that directly: ``` function f ( { arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 }) { // ... } ``` My proposal theoretically could solve this "problem" too. P.P.S ``` function f( arg1, arg2, arg3 ) { const obj = {arg1, arg2}; const obj2 = {arg3}; //... } ``` You obv could do that, but there are avoidable repetitions: ``` function f( obj.arg1, obj.arg2, obj2.arg3 ) { //... } ```
andrysimo1997 at gmail.com (2018-11-29T08:31:18.574Z)
Thanks for partecipating to this discussion and for your opinions on my proposal. I cannot reply to each one of you now, but I'd like to receive feedback also on the Further Ideas section. Maybe you'll find something interesting. In JS there is no way (please correct me if you find the way) to gather all arguments directly in an object (without passing directly an object obv) like you can easily do with an array. So, to mantain this way to pass the arguments: ``` f(arg1, arg2, arg3); ``` you could do like that to store them into an array: ``` function f(...args){ /* code */ } ``` but something like that won't work if you want to gather them into an obj: ``` function f({...obj}){ /* code */ } ``` My proposal could solve this problem. \ \ P.S. Though you pass an object created on the fly (and this is wath I'd like to avoid): ``` f( { arg1, arg2, arg3 } ); ``` to make that work: ``` function f({...obj}){ /* code */ } ``` you cannot do something like that directly: ``` function f ( { arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 }) { // ... } ``` My proposal theoretically could solve this "problem" too.
andrysimo1997 at gmail.com (2018-11-29T08:28:41.105Z)
Thanks for partecipating to this discussion and for your opinions on my proposal. I cannot reply to each one of you now, but I'd like to receive feedback also on the Further Ideas section. Maybe you'll find something interesting. In JS there is no way (please correct me if you find the way) to gather all arguments directly in an object (without passing directly an object obv) like you can easily do with an array. So, to mantain this way to pass the arguments: ``` f(arg1, arg2, arg3); ``` you could do like that to store them into an array: ``` function f(...args){ /* code */ } ``` but something like that won't work if you want to gather them into an obj: ``` function f({...obj}){ /* code */ } ``` My proposal could solve this problem. \ \ P.S. Though you pass an object created on the fly (and this is wath I'd like to avoid): ``` f( { arg1, arg2, arg3 } ); ``` to make that work: ``` function f({...obj}){ /* code */ } ``` you cannot do something like that directly: ``` function f ( { arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 }) { // ... } ``` My proposal theoretically could solve this "problem" too. P.P.S ``` function f( arg1, arg2, arg3 ) { const obj = {}; const obj2 = {}; ({ arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 } = {arg1, arg2, arg3 }) } ``` You could do that, but there is an object creation that I'd like to avoid and the syntax is not clear IMHO compared to: ``` function f( obj.arg1, obj.arg2, obj2.arg3 ) { //... } ```
andrysimo1997 at gmail.com (2018-11-29T08:27:13.370Z)
Thanks for partecipating to this discussion and for your opinions on my proposal. I cannot reply to each one of you now, but I'd like to receive feedback also on the Further Ideas section. Maybe you'll find something interesting. In JS there is no way (please correct me if you find the way) to gather all arguments directly in an object (without passing directly an object obv) like you can easily do with an array. So, to mantain this way to pass the arguments: ``` f(arg1, arg2, arg3); ``` you could do like that to store them into an array: ``` function f(...args){ /* code */ } ``` but something like that won't work if you want to gather them into an obj: ``` function f({...obj}){ /* code */ } ``` My proposal could solve this problem. \ \ P.S. Though you pass an object created on the fly (and this is wath I'd like to avoid): ``` f( { arg1, arg2, arg3 } ); ``` to make that work: ``` function f({...obj}){ /* code */ } ``` you cannot do something like that directly: ``` function f ( { arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 }) { // ... } ``` My proposal theoretically could solve this "problem" too. P.P.S ``` function f( arg1, arg2, arg3 ) { const obj = {}; const obj2 = {}; ({ arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 } = {arg1, arg2, arg3 }) } ``` You could do that, but there is an object creation that I'd like to avoid and the syntax is not clear IMHO.
andrysimo1997 at gmail.com (2018-11-29T08:26:55.610Z)
Thanks for partecipating to this discussion and for your opinions on my proposal. I cannot reply to each one of you now, but I'd like to receive feedback also on the Further Ideas section. Maybe you'll find something interesting. In JS there is no way (please correct me if you find the way) to gather all arguments directly in an object (without passing directly an object obv) like you can easily do with an array. So, to mantain this way to pass the arguments: ``` f(arg1, arg2, arg3); ``` you could do like that to store them into an array: ``` function f(...args){ /* code */ } ``` but something like that won't work if you want to gather them into an obj: ``` function f({...obj}){ /* code */ } ``` My proposal could solve this problem. P.S. Though you pass an object created on the fly (and this is wath I'd like to avoid): ``` f( { arg1, arg2, arg3 } ); ``` to make that work: ``` function f({...obj}){ /* code */ } ``` you cannot do something like that directly: ``` function f ( { arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 }) { // ... } ``` My proposal theoretically could solve this "problem" too. P.P.S ``` function f( arg1, arg2, arg3 ) { const obj = {}; const obj2 = {}; ({ arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 } = {arg1, arg2, arg3 }) } ``` You could do that, but there is an object creation that I'd like to avoid and the syntax is not clear IMHO.
andrysimo1997 at gmail.com (2018-11-29T08:25:54.456Z)
Thanks for partecipating to this discussion and for your opinions on my proposal. I cannot reply to each one of you now, but I'd like to receive feedback also on the Further Ideas section. Maybe you'll find something interesting. In JS there is no way (please correct me if you find the way) to gather all arguments directly in an object (without passing directly an object obv) like you can easily do with an array. So, to mantain this way to pass the arguments: ``` f(arg1, arg2, arg3); ``` you could do like that to store them into an array: ``` function f(...args){ /* code */ } ``` but something like that won't work if you want to gather them into an obj: ``` function f({...obj}){ /* code */ } ``` My proposal could solve this problem. P.S. Though you pass an object created on the fly (and this is wath I'd like to avoid): ``` f( { arg1, arg2, arg3 } ); ``` to make that work: ``` function f({...obj}){ /* code */ } ``` you cannot do something like that directly: ``` function f ( { arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 }) { // ... } ``` My proposal theoretically could solve this "problem" too. P.P.S ``` function f( arg1, arg2, arg3 ) { const obj = {}; const obj2 = {}; ({ arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 } = {arg1, arg2, arg3 }) } ``` You could do that, but there is an object creation that I'd like to avoid and the syntax is not clear IMHO.
andrysimo1997 at gmail.com (2018-11-29T08:25:23.707Z)
Thanks for partecipating to this discussion and for your opinions on my proposal. I cannot reply to each one of you now, but I'd like to receive feedback also on the Further Ideas section. Maybe you'll find something interesting. In JS there is no way (please correct me if you find the way) to gather all arguments directly in an object (without passing directly an object obv) like you can easily do with an array. So, to mantain this way to pass the arguments: ``` f(arg1, arg2, arg3); ``` you could do like that to store them into an array: ``` function f(...args){ /* code */ } ``` but something like that won't work if you want to gather them into an obj: ``` function f({...obj}){ /* code */ } ``` My proposal could solve this problem. P.S. Though you pass an object created on the fly (and this is wath I'd like to avoid): ``` f( { arg1, arg2, arg3 } ); ``` to make that work: ``` function f({...obj}){ /* code */ } ``` you cannot do something like that directly: ``` function f ( { arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 }) { // ... } ``` My proposal theoretically could solve this "problem" too. P.P.S ``` function f( arg1, arg2, arg3 ) { const obj = {}; const obj2 = {}; ({ arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 } = {arg1, arg2, arg3 }) } ``` You could do that, but there is an object creation that I'd like to avoid and the syntax is not clear IMHO.
andrysimo1997 at gmail.com (2018-11-29T08:25:04.080Z)
Thanks for partecipating to this discussion and for your opinions on my proposal. I cannot reply to each one of you now, but I'd like to receive feedback also on the Further Ideas section. Maybe you'll find something interesting. In JS there is no way (please correct me if you find the way) to gather all arguments directly in an object (without passing directly an object obv) like you can easily do with an array. So, to mantain this way to pass the arguments: ``` f(arg1, arg2, arg3); ``` you could do like that to store them into an array: ``` function f(...args){ /* code */ } ``` but something like that won't work if you want to gather them into an obj: ``` function f({...obj}){ /* code */ } ``` My proposal could solve this problem. P.S. Though you pass an object created on the fly (and this is wath I'd like to avoid): ``` f( { arg1, arg2, arg3 } ); ``` to make that work: ``` function f({...obj}){ /* code */ } ``` you cannot do something like that directly: ``` function f ( { arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 }) { // ... } ``` My proposal theoretically could solve this "problem" too. P.P.S ``` function f( arg1, arg2, arg3 ) { const obj = {}; const obj2 = {}; ({ arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 } = {arg1, arg2, arg3 }) } ``` You could do that, but there is an object creation that I'd like to avoid and the syntax is not clear IMHO.
andrysimo1997 at gmail.com (2018-11-29T08:05:34.361Z)
Thanks for partecipating to this discussion and for your opinions on my proposal. I cannot reply to each one of you now, but I'd like to receive feedback also on the Further Ideas section. Maybe you'll find something interesting. In JS there is no way (please correct me if you find the way) to gather all arguments directly in an object (without passing directly an object obv) like you can easily do with an array. So, to mantain this way to pass the arguments: ``` f(arg1, arg2, arg3); ``` you could do like that to store them into an array: ``` function f(...args){ /* code */ } ``` but something like that won't work if you want to gather them into an obj: ``` function f({...obj}){ /* code */ } ``` My proposal could solve this problem. P.S. Though you pass an object created on the fly (and this is wath I'd like to avoid): ``` f( { arg1, arg2, arg3 } ); ``` to make that work: ``` function f({...obj}){ /* code */ } ``` you cannot do something like that directly: ``` function a ( { arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 }) { // ... } ``` My proposal theoretically could solve this "problem" too.
andrysimo1997 at gmail.com (2018-11-29T08:05:01.369Z)
Thanks for partecipating to this discussion and for your opinions on my proposal. I cannot reply to each one of you now, but I'd like to receive feedback also on the Further Ideas section. Maybe you'll find something interesting. In JS there is no way (please correct me if you find the way) to gather all arguments directly in an object (without passing directly an object obv) like you can easily do with an array. So, to mantain this way to pass the arguments: ``` f(arg1, arg2, arg3); ``` you could do like that to store them into an array: ``` function f(...args){ /* code */ } ``` but something like that won't work if u want gather them into a obj: ``` function f({...obj}){ /* code */ } ``` My proposal could solve this problem. P.S. Though you pass an object created on the fly (and this is wath I'd like to avoid): ``` f( { arg1, arg2, arg3 } ); ``` to make that work: ``` function f({...obj}){ /* code */ } ``` you cannot do something like that directly: ``` function a ( { arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 }) { // ... } ``` My proposal theoretically could solve this "problem" too.
andrysimo1997 at gmail.com (2018-11-29T08:03:16.393Z)
Thanks for partecipating to this discussion and for your opinions on my proposal. I cannot reply to each one of you now, but I'd like to receive feedback also on the Further Ideas section. Maybe you'll find something interesting. In JS there is no way (please correct me if you find the way) to gather all arguments directly in an object (without passing directly an object obv) like you can easily do with an array. So, to mantain this way to pass the arguments: ``` f(arg1, arg2, arg3); ``` you could do like that to store them into an array: ``` function f(...args){ /* code */ } ``` but something like that won't work if u want gather them into a obj: `` function f({...obj}){ /* code */ } ``` My proposal could solve this problem. P.S. Though you pass an object created on the fly (and this is wath I'd like to avoid): ``` f( { arg1, arg2, arg3 } ); ``` to make that work: `` function f({...obj}){ /* code */ } ``` you cannot do something like that directly: ``` function a ( { arg1: obj.arg1, arg2: obj2.arg2, arg3: obj2.arg3 }) {} ``` My proposal theoretically could solve this "problem" too. Il giorno gio 29 nov 2018 alle ore 00:59 Ron Buckton < Ron.Buckton at microsoft.com> ha scritto: