this post was submitted on 03 May 2025
27 points (81.4% liked)
Programmer Humor
22981 readers
917 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I think I'd rather go with the
?
being on the same line as the 'condition' and the rest can go on the other line.Otherwise, I'd be looking one line downwards and then coming back up after realising that it is a
(cond)?ex:ex
operator.And I get that it's not random, just that I asked for it at as many places as possible to not do alignment.
And from what I can recall, I had managed to make stuff work with the older clang-formats...
Or maybe not. Maybe this kind of code never went through it.