Re:C# 8: Switch expressions
by daeken on Friday February 15, 2019 @03:21PM
(#19174356)
I think the order of operations here is important. Take, for example, the case of operation == "/" and b == 0. You might find it valuable to log that you're doing a division, before it catches fire due to the divide by zero. Obviously a contrived example, but that was my thinking with the inner function. Either way, pretty straightforward.
[ Parent
| on HN ]
There are no comments on this comment yet.