logoalt Hacker News

hocuspocuslast Tuesday at 3:34 PM2 repliesview on HN

Not defending Go's braindead error handling, but you'll note that Swift is doubly coloring the function here (async throws).


Replies

tarentellast Tuesday at 4:37 PM

What is the problem with that though? I honestly wish they moved the async key word to the front `async func ...` but given the relative newness of all of this I've yet to see anyone get confused by this. The compiler also ensures everything is used correctly anyway.

show 1 reply
saghmlast Tuesday at 10:09 PM

And sometimes you even have to use the return value the way the function annoates as well instead of just pretending it's a string or whatever when it's not! Having the language tell me how to use things is so frustrating.