Definitions

from Wiktionary, Creative Commons Attribution/Share-Alike License.

  • noun programming An evaluation strategy in which the arguments to a function are evaluated the first time they are used in that function.

Etymologies

Sorry, no etymologies found.

Support

Help support Wordnik (and make this page ad-free) by adopting the word call-by-need.

Examples

  • Caching of this sort is what distinguishes call-by-need from call-by-name and allows lazy evaluation to work efficiently for data representations.

    Planet Haskell 2009

  • We would also like to combine this with call-by-need, so when an argument is duplicated it is only reduced once.

    Planet Haskell 2009

  • We would also like to combine this with call-by-need, so when an argument is duplicated it is only reduced once.

    Planet Haskell 2009

  • The result was later shown to be inapplicable to a lazy pure language (using call-by-need) by Bird, Jones and de Moor.

    Planet Haskell Nils Anders Danielsson 2008

  • The main difference is that a macro generally has call-by-name / call-by-need semantics, and that it will modify it's current or surrounding AST nodes in some way.

    Javalobby - The heart of the Java developer community olabini 2008

Comments

Log in or sign up to get involved in the conversation. It's quick and easy.