On Wed, Nov 26, 2025 at 2:06 AM Alexandre Courbot <[email protected]> wrote:
>
> IIUC Timur's proposal would not require an Option as a field, just that
> the method returns one. I tend to agree that this is more idiomatic.

+1, please avoid encoding "states" within integer types and use the
type system instead.

In fact, where reasonable, please consider defining newtypes around
certain integers uses as well.

Cheers,
Miguel

Reply via email to