Hacker News new | ask | show | jobs
by carterklein13 2056 days ago
This is one of the main reasons I love using Go for backend work, and the lack of this functionality is just one of the reasons I dislike JavaScript.

Anything to make JS feel less haphazard and more elegant (i.e. using TypeScript) is awesome in my books. Looking forward to hopefully using this pattern in my personal work going forward, and maybe trying to introduce it to my team ta work.

1 comments

Same reason I'm a Lua fan, multiple return values is a super function. With Lua it's baked into the language.