News for hackers. Stuff that matters.
Re:Clear is better than clever [pdf] by josephg on Monday May 06, 2019 @06:22PM (#19844534)
Yes exactly. I mentioned in another comment that rust allows this, and having used it I think the best of all worlds.

My favorite part is that its easy to add extra statements into the conditional blocks if you want. Doing that with ternaries requires either using the comma operator, repeating the condition on another line or refactoring the whole expression back out into if-else chains. All of those options are bad.

There are no comments on this comment yet.