Date: Sat, 15 Jan 2022 20:32:32 -0600
On Wed, Jan 5, 2022 at 6:10 AM Ben Boeckel <ben.boeckel_at_[hidden]> wrote:
> On Wed, Jan 05, 2022 at 08:10:08 +0000, Jonathan Wakely via SG15 wrote:
> > Maybe give it a default argument too. The difficulty then is whether it
> > should default to true or false, and whether true should mean conditional
> > or unconditional.
>
> Why are we limited to `bool`? Why not something like:
>
> ```
> enum class breakport_condition {
> always,
> when_debugged, // best effort
> never, // to allow for more complicated conditional logic leading up
> to the call
> };
> ```
>
> The discussion of the default is then down to just `always` or
> `when_debugged`, no?
>
I don't see what "never" does? There's only one check to skip or not, so I
would think there's only two alternatives to choose from.
> On Wed, Jan 05, 2022 at 08:10:08 +0000, Jonathan Wakely via SG15 wrote:
> > Maybe give it a default argument too. The difficulty then is whether it
> > should default to true or false, and whether true should mean conditional
> > or unconditional.
>
> Why are we limited to `bool`? Why not something like:
>
> ```
> enum class breakport_condition {
> always,
> when_debugged, // best effort
> never, // to allow for more complicated conditional logic leading up
> to the call
> };
> ```
>
> The discussion of the default is then down to just `always` or
> `when_debugged`, no?
>
I don't see what "never" does? There's only one check to skip or not, so I
would think there's only two alternatives to choose from.
-- -- René Ferdinand Rivera Morell -- Don't Assume Anything -- No Supone Nada -- Robot Dreams - http://robot-dreams.net
Received on 2022-01-16 02:32:45