W1siziisijiwmtuvmdivmtivmtyvmzyvmdqvnteyl0f2yxrhci5wbmcixsxbinailcj0ahvtyiisijmwmhgzmdajil1d?sha=40d429a2ffd553af
In reply to: pants.halfbyte.org/zzo652
I’m pretty sure I was still sucking on pacifiers at that time (I was probably already out of diapers?

Me personally, I have no problems parsing the ternary as well, but then again, I wrote my first line of C in probably 1994 or so.

I’m pretty sure I was still sucking on pacifiers at that time (I was probably already out of diapers? I can’t claim I have the best memory of these times), and my first line of C has been much later, so I don’t think it’s the age.

I agree that it depends on the context, you can abuse almost anything and turn it into an unreadable mess, point in case the IOCCC. But I still very much believe that the ternary operator can also help turning hard to read code into easy to understand one. There’s a point where information density and readability are optimal and you can definitely get there with the ternary operator.

The biggest issue is probably that it’s hard to google for beginners.

This document is webmention enabled.