4 ms·
Yeah, I think nested ternaries are fine as long as it’s just a list like OP is suggesting… But it breaks peoples brains for some reason so I rarely use them pr
by erikpukinskis 5y ago
Yeah, I think nested ternaries are fine as long as it’s just a list like OP is suggesting…
But it breaks peoples brains for some reason so I rarely use them professionally.
It’s really not that hard though, the ? and : are just shorthand for “else if” and “then”.