Cyril Auburtin (2016-08-11T11:00:25.000Z)
cyril.auburtin at gmail.com (2016-08-11T11:12:50.900Z)
> Confused by this thread. It's quite simple though, _ would be a useless allocated variable, you can't have more than 1, ... > What is the problem that this proposal is trying to solve? ignoring/skipping argument in functions declarations (indeed the invocations could be let apart) > `Math.min(x,,y)` yes this kind of thing would give NaN, that's why you can write it with more spaces to avoid a typo mistake `Math.min(x, , y)`, but indeed you could still have something like `Math.min(x, /*y (no longer used)*/ , z)`. Like said above, I realize the function invocations are sensible. So, it could be only for function declarations `div.addEventListener('click', () => { } )` says to skip all arguments, and your callback scope is free of any additional vars `arr.forEach( x => { } )` or `arr.forEach( (x) => { } )` says to only consider first argument, others are skipped, and not in scope `Array.from({length: 19}, (, i) => i )` would be similar for the second argument, similarly to array destructuring. It's not just for saving one character, that's really not the matter, it's for standardizing this way, because some people use `_`, some don't, .... (Yes `.` would even be better than a variable name like `_`, something similar to Haskell's 'holes')
cyril.auburtin at gmail.com (2016-08-11T11:09:16.912Z)
> Confused by this thread. It's quite simple though, _ would be a useless allocated variable, you can't have more than 1, ... > What is the problem that this proposal is trying to solve? ignoring/skipping argument in functions declarations (indeed the invocations could be let apart) > `Math.min(x,,y)` yes this kind of thing would give NaN, that's why you can write it with more spaces to avoid a typo mistake `Math.min(x, , y)`, but indeed you could still have something like `Math.min(x, /*y (no longer used)*/ , z)`. Like said above, I realize the function invocations are sensible. So, it could be only for function declarations `div.addEventListener('click', () => { } )` says to skip all arguments, and your callback scope is free of any additional vars `arr.forEach( x => { } )` or `arr.forEach( (x) => { } )` says to only consider first argument, others are skipped, and not in scope `Array.from({length: 19}, (, i) => i )` would be similar for the second argument, similarly to array destructuring. It's not just for saving one character, that's really not the matter, it's for standardizing this way, because some people use `_`, some don't, ....
cyril.auburtin at gmail.com (2016-08-11T11:07:43.891Z)
> Confused by this thread. It's quite simple though, _ would be a useless allocated variable, you can't have more than 1, ... > What is the problem that this proposal is trying to solve? ignoring/skipping argument in functions declarations (indeed the invocations could be let apart) > `Math.min(x,,y)` yes this kind of thing would give NaN, that's why you can write it with more spaces to avoid a typo mistake `Math.min(x, , y)`, but indeed you could still have something like `Math.min(x, /*y (no longer used)*/ , z)`. Like said above, I realize the function invocations are sensible. So, it could be only for function declarations `div.addEventListener('click', () => { } )` says to skip all arguments, and your callback scope is free of any additional vars `arr.forEach( x => { } )` says to only consider first argument, others are skipped, and not in scope `Array.from({length: 19}, (, i) => i )` would be similar for the second argument, similarly to array destructuring. It's not just for saving one character, that's really not the matter, it's for standardizing this way, because some people use `_`, some don't, ....
cyril.auburtin at gmail.com (2016-08-11T11:05:39.999Z)
> Confused by this thread. It's quite simple though, _ would be a useless allocated variable, you can't have more than 1, ... > What is the problem that this proposal is trying to solve? ignoring/skipping argument in functions declarations (indeed the invocations could be let apart) > `Math.min(x,,y)` yes this kind of thing would give NaN, that's why you can write it with more spaces to avoid a typo mistake `Math.min(x, , y)`, but indeed you could still have something like `Math.min(x, /*y (no longer used)*/ , z)`. Like said above, I realize the function invocations are sensible. So, it could be only for function declarations `div.addEventListener('click', () => { } )` says to skip all arguments, and your callback scope is free of any additional vars `arr.forEach( x => { } )` says to only consider first argument, others are skipped, and not in scope `Array.from({length: 19}, (, i) => i )` would be similar for the second argument, similarly to array destructuring. It's not just for saving one character, that's really not the matter, it's for standardizing this way, because some people use `_`, some don't, .... 2016-08-10 16:27 GMT+02:00 Bob Myers <rtm at gol.com>: