Re: Review: Add config.sanityCheck
Jeremy Selan <jeremy...@...>
Your idea would also work. Not sure if either is better.
sanityCheck() was inspired by OpenEXR, which has a function of the
same name, and performs a similar action. Guess I just had that model
in mind when writing this.
Are you against exceptions?
If we went with your idea, why an enum instead of a bool?
I would expect users to only want to know if there is an error or not.
Under what circumstances would a user be returned the "UNKNOWN" value?
The reason I have 3 states internally is to know if i've computed the
value, and if so, if it succeeded or not. The internal 'unknown'
state is just an implementation detail, the user is not aware of it.