4 ms·
This is awesome, but can I just say foo/bar/baz drives me nuts. How about `{outerProperty: {innerProperty: 'innerValue'}}` ? That just seems so much easier to f
by draw_down 11y ago
This is awesome, but can I just say foo/bar/baz drives me nuts. How about `{outerProperty: {innerProperty: 'innerValue'}}` ? That just seems so much easier to follow to me, especially in these deep-nested destructuring examples.
But anyway, seriously, this is awesome. The author is responsible for a large part of my ES6 knowledge.
- sixothree 11y agoFoo and bar drive me nuts. They feel antiquated and uninspired. If we never see them again it will be too soon.
- ajanuary 11y agoThe advantage of foo/bar/baz is the cultural understanding that the contents isn't important. It's prevalence in programming is because programming languages have strict rules about where tokens are needed. We can't just wave them away, so we fill them with words that we all know mean "nothing important is meant by this". Things get muddier when you need to say "the contents aren't important, just that it matches this other token over here".