Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Pure function, side effect, referential transparency?

Dikenal juga sebagai: side effect · pure function · referential transparency

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

Baca dalam konteks →