Re:Clear is better than clever [pdf]
by psychoslave on Tuesday May 07, 2019 @06:03AM
(#19847955)
Not completely the same situation, though, as there are no assignation here. For simple cases (`v = e0 ? e1 : e2`), ternary operator sure is fine, but for more complex cases, `some_var = selector(context)` tend to be a clearer path. That will also be better rendered in your API as the function fine documentation will have more chance to be extracted properly.
[ Parent
| on HN ]
There are no comments on this comment yet.