cliffle on Nostr: Well! I've definitely seen my share of "idiosyncratic" C styles omitting braces and ...
Well! I've definitely seen my share of "idiosyncratic" C styles omitting braces and exploiting corner cases in 30+ years of having to read other peoples' C code, but this is a new one.
I had not thought about what would happen if you left the braces off a switch. Because, of course, doing so would be utterly unhinged.
I give you: the world's most obtuse version of "if (x == A || x == b)", indistinguishable from an editing mistake.
Published at
2025-10-29 21:59:27 UTCEvent JSON
{
"id": "b6072f3b72c0df39bb6acb2bd268cdc16e2b32073e88baa53add68d732c66d29",
"pubkey": "28a63c87dc548704b010a77b18468afd4214ccc4e4ce15a8e4e7e766fac533ce",
"created_at": 1761775167,
"kind": 1,
"tags": [
[
"imeta",
"url https://media.hachyderm.io/media_attachments/files/115/459/685/184/154/963/original/377fc4b51e36a8f3.png",
"m image/png",
"dim 702x153",
"blurhash U12i9C%3ITRiRPxu%3agIUozogWC?vR+ITNF"
],
[
"proxy",
"https://hachyderm.io/users/cliffle/statuses/115459697405914524",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub/"
]
],
"content": "Well! I've definitely seen my share of \"idiosyncratic\" C styles omitting braces and exploiting corner cases in 30+ years of having to read other peoples' C code, but this is a new one.\n\nI had not thought about what would happen if you left the braces off a switch. Because, of course, doing so would be utterly unhinged.\n\nI give you: the world's most obtuse version of \"if (x == A || x == b)\", indistinguishable from an editing mistake.\n\nhttps://media.hachyderm.io/media_attachments/files/115/459/685/184/154/963/original/377fc4b51e36a8f3.png",
"sig": "d5bfc7d0ee4f18144e59cea93450a2d52262b0721570d97bb8fd428257a6e56ceb8d417e0eeda69bb63ac4d041e49723c99d45df9c15b6db39d5de9a57b64ae5"
}