On Thu, Dec 15, 2016 at 12:04 -0500, you wrote:
> force people to cast the value to an error type, maybe like this...
>
> if ( v as error == Error::Success )
Mind elaboratong why you think we need to force the cast? That seems
to take away some of the appeal of the solution.
Btw, the above is an example of why I'm still a bit reluctant on the
"as" syntax. The line above would really benefit from parentheses:
if ( (v as error) == Error::Success )
> I find "Error::Success" really unintuitive and kind of funny too. :)
Yeah, agree, that's part of the question what namespace to use.
"Broker::Success" would certainly be nicer.
Robin
--
Robin Sommer * ICSI/LBNL * [email protected] * www.icir.org/robin
_______________________________________________
bro-dev mailing list
[email protected]
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev