• JackbyDev@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 hours ago

    It makes more sense if you think of semicolons like other programming languages like Java and C use it.

    foo();
    bar();
    

    But those languages allow foo(); bar(); as well. Then && works like a normal short circuited expression (with side effects).