early return
Appearance
English
[edit]Noun
[edit]early return (plural early returns)
- (programming) The act of returning from a function before reaching the end of that function.
- 2019, Fedor G. Pikus, Hands-On Design Patterns with C++, page 469:
- 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.