26 Jul
2017
26 Jul
'17
4:12 a.m.
On 25 July 2017 at 16:46, Sergey Mitsyn via Boost
Also, throw on special value assignment is insane
+1
- it might be perfectly fine to pass special values to indicate something other than error - say, in a system it might be defined as a missing value (e.g. NaN meaning n/a).
And checking the that totally normal (and informative, could be a value in an enum class) return value directly is just as easy (or easier and more clear) than to have to write a try/catch block. degski -- "*Ihre sogenannte Religion wirkt bloß wie ein Opiat reizend, betäubend, Schmerzen aus Schwäche stillend.*" - Novalis 1798