News for hackers. Stuff that matters.
Re:Lisp-Stick on a Python by flohofwoe on Tuesday November 15, 2022 @07:38AM (#33608377)
In C99 or later you can also write it as:

    Vec get_vec(void) {
        return (Vec){ { 3, 2, 1, 0 } };
    }
...or I would probably prefer designated init for readability:

    Vec get_vec(void) {
        return (Vec){ .v = { 3, 2, 1, 0 } };
    }

There are no comments on this comment yet.