early return
noun1
Computing, Engineering, Mathematics, Natural sciences, Physical sciences, Programming, Sciences The act of returning from a function before reaching the end of that function.
- With RAII, the closing action cannot be skipped or bypassed, even if the function exits the scope prematurely with an early return or by throwing an exception.2019, Fedor G. Pikus, Hands-On Design Patterns with C++, page 469: