On Mon, Aug 3, 2015 at 6:07 PM, Jonas Sicking <[email protected]> wrote:
> How would you make a factory function like the above fail?


Don't allow for the possibility.  If Foo::Create() is directly
analogous to new Foo(), then it can't fail.  Leave the failing for
later method calls.
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to