A subroutine in computer programming used to delay a calculation until its result is needed or to insert operations at the beginning or end of another subroutine. Thunks are often used in compiler code generation. They can also be used to simulate lazy evaluation and delay the computation of function arguments in functional programming.
© Jaxon, Inc. 2024. All rights reserved.