Hacker News new | ask | show | jobs
by anonymous 4776 days ago
Well, you could

    if (one) {
    if (two)
    if (three)
    if (soon) {
        stuff
    }} else {
        else stuff
    }
Personally, I think I won't have any trouble reading that, but I have noticed I'm somewhat more tolerant than others in this regard. Though I am more OCD than others in other ways.
2 comments

That doesn't what he's talking about, though. Your else will run anytime `one` is false, not when `one && two && three && soon` is false.
But it's still not the equivalent of: if (one && two && three && soon) {stuff} else {stuff} which I assume the GP meant.