early return

noun

early return

noun
1

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:

Entry derived from the Wiktionary, under licence CC BY-SA 4.0 — list of authors.