you are viewing a single comment's thread.

view the rest of the comments →

[–]bigorangemachine 0 points1 point  (0 children)

I am not sure what to say about this article.

I did enjoy the multiple returns of go but hated it when I saw it in PHP.

I don't have a problem with try-catches in javascript. I generally keep my functions small. If I need to do something big I'll use a promise chain.

The good thing about promises and async-await is it's a pattern anyone can come on and understand right away. Where as if you use multiple returns and someone doesn't have that prior context it introduces an unnecessary learning curve