Look what I found
-
Look what I found
-
Look what I found
@error WTAF?
-
@error WTAF?
@NormanDunbar Exactly.
-
Look what I found
@error oh god I need to wash my eyes out with bleach now
-
Look what I found
switches are just polyamorous gotos
-
Look what I found
@error@mastodon.bsd.cafe actually pretty cool xd
-
Look what I found
-
Look what I found
@error Duff's device all over again. Nice!
-
Look what I found
@error /me sets mode = 3, chuckling
-
@error /me sets mode = 3, chuckling
@_the_cloud Yeah, but if you click the link, they actually use default case there.
-
Look what I found
@error I'm calling the police
-
Look what I found
@error that's wild. I wonder how this would be treated by different formatters/style enforcers and if it would break
-
Look what I found
@error At the time this was written (for hardware & compilers were pre SSA) this could have been reasonable.
-
Look what I found
@error yup that's how Contiki implemented Protothreads initially:
-
Look what I found
@error That's super neat, I didn't know! I'll probably use this in my code at a some point...
-
Look what I found
@error this should be classified as an infohazard
-
Look what I found
Three lines too many. I thought serious programmers were lazy.
-
Look what I found
@error It's an utter pain in the arse when writing a compiler too, and even worse is when goto gets involved.
-
@error that's wild. I wonder how this would be treated by different formatters/style enforcers and if it would break
@mikee I actually tried it. It works just fine to my surprise. But the clangd formatter gone mad:
-
@_the_cloud Yeah, but if you click the link, they actually use default case there.
@error @_the_cloud Only in the original example, not in the first two. I'd set it to 3 and chuckle too. I'm an FPGA guy, so I always think about else/default.