Re:Optional If Expressions
by hyperhello on Saturday April 15, 2023 @04:03AM
(#35578627)
Maybe I’m misunderstanding the point of the example, but it really seems more like the else clause ought to be the if clause if it would have the more drastic effect at runtime. Checking if the denominator is zero and jumping out or returning some alternate value would be the if.
[ Parent
| on HN ]
There are no comments on this comment yet.