Hacker News new | ask | show | jobs
by flohofwoe 2390 days ago
You realize that this is (almost) valid C99?

In C99 it looks like this:

    struct Point {
        int x;
        int y;
    };

    struct Point new_point(int x, int y) {
        return (struct Point) { .x = x, .y = y };
    }
1 comments

Yes. In fact that's intentional.