early return

English

Noun

early return (plural early returns)

  1. (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.
This article is issued from Wiktionary. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.