Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Pure function, side effect, referential transparency?

Ook bekend als: side effect · pure function · referential transparency

Definition 9.9 University Computer Science — Year 2 · Hoofdstuk 9 — Functional Programming

A side effect is any effect of a call besides its result: a change to a variable outside it, an input or output, a panic. A function is pure if its result depends only on its arguments and it has no side effect. An expression is referentially transparent if replacing it by its value does not change the program.

Lees in het hoofdstuk →