Comment

Comment by dartharva

I don't know how applicable this is, but even the basic if-else syntax can hit you with hours of frustrating struggles. The parantheses have to be arranged in a specific way that was never mentioned in the online language specs over at go.dev, otherwise the code will fail:

    if (cond) {
         return x
    } else { 
         return y
    }
works, but

    if (cond) { return x }
    else { return y }
doesn't.
parent dartharva 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton