3 ms·
Why is it a dangerous coding style? The new Node will have support for yield / generators that result in beautiful async code.
by cdelsolar 13y ago
Why is it a dangerous coding style? The new Node will have support for yield / generators that result in beautiful async code.
- hugs 13y agoOf course, beauty is in the eye of the beholder, but I would say yield statements are not beautiful, they're just less ugly. Having lots of yield statements sprinkled throughout my code is (again, in my eyes) ugly. Less ugly than callback pyramids, but still ugly.
- jerf 13y agoTry Go; get back to me on the beauty. "Beautiful async code" is where the async is essentially invisible, because everything just is async.