Standard way to supply hints to branches
Kagamin
spam at here.lot
Wed Aug 28 08:57:21 UTC 2024
On Friday, 23 August 2024 at 17:39:39 UTC, Manu wrote:
> Validations are usually a series of exclusionary checks framed
> as
> `if(fails_validity_check) return;`
> That flow keeps code in a nice linear flow, it doesn't
> introduce any scopes
Aren't returns grouped near the end of function? Then validation
checks would be implemented as forward jumps, which at least
riscv interprets as unlikely by default.
More information about the Digitalmars-d
mailing list