Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Pure function, side effect, referential transparency?

Também chamado de: side effect · pure function · referential transparency

Definition 9.9 University Computer Science — Year 2 · Capítulo 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.

Ler no capítulo →