[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-devel
Subject:    Re: 10188: change voids to bools or use exceptions?
From:       Scott Kostyshak <skostysh () lyx ! org>
Date:       2016-08-31 21:28:54
Message-ID: 20160831212854.okwmmxcfgbgegoty () Opti1604
[Download RAW message or body]


On Wed, Aug 31, 2016 at 10:08:35PM +0100, Guillaume Munch wrote:

> Sounds good to me

> (and if there are caveats I am not aware of regarding
> exceptions in LyX, I would be curious to know)

I have occassionally seen comments that suggest exceptions should be
avoided, for example here [1].

> But if you end up using an
> error code instead of an exception, I may suggest that you use an enum
> instead of bool, so that it is self-documenting and extensible.

OK makes sense.

Scott

[1] https://www.mail-archive.com/search?l=mid&q=CAO7dr0i_%2BN44s-U2UgFAMioS8jMRwo1hB5xfHQWrVFftFZvT8A%40mail.gmail.com



["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic