|
|
|
|
|
by pavlov
3740 days ago
|
|
I had to work on an ES5 project recently and I was almost in tears because I couldn't use a computed property. (someObject[someValue]) I wound up writing a switch to assign the correct index, and I felt very sad about my life. Just checking -- is this a parody of a JavaScript hipster, or do you seriously get depressed by writing a switch statement? |
|
That said, when I have to work in an older project without babel, it gets cumbersome to change into doing things the old way. You can get really used to arrow functions and async... Working without cjs modules is harder still. There are many layers of convenience, and it's easy to get used to them.