Point-Free Style

Noun · Development

Definitions

  1. A programming style in functional languages where functions are defined by composing other functions without explicitly mentioning their arguments — e.g., writing sum = foldr (+) 0 instead of sum xs = foldr (+) 0 xs. Also called tacit programming.

    In plain English: Writing functions by chaining other functions together without ever naming the data being passed through, like describing a recipe by listing steps without mentioning the ingredients each time.

    Example: "The point-free version is const getNames = map(prop('name')) — no need to name the array parameter, the composition makes it obvious."

Related Terms