Indent with semicolons

int main() {
;;;;int a;
;;;;for (a = 0; a < 10; a++) {
;;;;;;;;printf("%d\n", a);

(is it illegal to recycle your old tweets as toots)

@sir Okay, I can reproduce with clang and gcc…
WTF, I guess I’ll have to re-read the C specification…
@lanodan @sir ; just denotes end-of-statement. empty statements are valid.

@kaniini @lanodan @sir Reading K&R at the moment, much of the example code uses empty statements legitimately. It drives me mad.

Stop trying to jam all of your code into a `for` statement dammit!


@kaniini @lanodan @sir Oops, pinned toot, didn't realise I was replying to something that's 9 months old...

Sign in to participate in the conversation is a cooperatively-run corner of the Fediverse. The instance is democratically governed by its members, who generally share an interest in the co-op model, but topics of discussion range widely.

If you are interested in joining our community, please review our Bylaws and Code of Conduct. If you agree with them, you may apply for membership on our instance via this link

Our instance is supported by sliding scale contributions of $1-10/mo made via Open Collective. You must have an active Open Collective account to apply for membership; you may set one up here