No, I don’t, not really. For projects that do these operations a lot, it would probably be a very useful enhancement. My reaction is a manifestation of my larger frustration with the direction of EcmaScript and TC39.
Why do I feel this way? A few reasons.
One, because here is the trap that we’re stuck in now:
- Someone decides that feature X isn’t good enough, even though it has worked fine for years, so proposes functionally identical feature Y instead (see: exponentiation operator)
- TC39 has decreed that EcmaScript shall not be versioned, so “legacy” syntax X cannot ever be removed
- Now we have two competing ways to do the same thing
- But sometimes the two ways are slightly different (reduced fat arrow function syntax, DIFFERENT lexical scope behaviour)