Darien Valentine (2017-07-16T08:18:43.000Z)
valentinium at gmail.com (2017-07-16T08:27:27.231Z)
If I understand right, Ron, it means a new RHS for PrimaryExpression which would behave like a reference, except that it is (presumably) not a valid assignment target? Is `{+}.length`, etc, then valid? Can you explain more about the ergonomics — maybe it’s just from lack of familiarity, but to me this seems pretty grawlixy, like something you’d see in Perl. In other words, I’m unsure how `arr.reduce({+}, 0)` is more ergonomic than `arr.reduce(Math.add, 0)`\*. Assuming it is and I’m just failing to see it, is the benefit significant enough to merit new syntax? (On further consideration, maybe `Reflect.add`, since `+` is not specific to numeric values...)
valentinium at gmail.com (2017-07-16T08:21:31.598Z)
If I understand right, Ron, it means a new RHS for PrimaryExpression which would behave like a reference, except that it is (presumably) not a valid assignment target? Can you explain more about the ergonomics — maybe it’s just from lack of familiarity, but to me this seems pretty grawlixy, like something you’d see in Perl. In other words, I’m unsure how `arr.reduce({+}, 0)` is more ergonomic than `arr.reduce(Math.add, 0)`\*. Assuming it is and I’m just failing to see it, is the benefit significant enough to merit new syntax? (On further consideration, maybe `Reflect.add`, since `+` is not specific to numeric values...)
valentinium at gmail.com (2017-07-16T08:20:41.118Z)
If I understand right, Ron, it means a new RHS for PrimaryExpression and would behave like a reference, except that it is (presumably) not a valid assignment target? Can you explain more about the ergonomics — maybe it’s just from lack of familiarity, but to me this seems pretty grawlixy, like something you’d see in Perl. In other words, I’m unsure how `arr.reduce({+}, 0)` is more ergonomic than `arr.reduce(Math.add, 0)`\*. Assuming it is and I’m just failing to see it, is the benefit significant enough to merit new syntax? (On further consideration, maybe `Reflect.add`, since `+` is not specific to numeric values...)