Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Pure function, side effect, referential transparency?

También llamado: 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.

Leer en el capítulo →