3 ms·
The contrast to imperative programming is not FP, but rather declarative programming. The idea of referential transparency comes from DP, not FP. Example: Prol
by iwwr 15y ago
The contrast to imperative programming is not FP, but rather declarative programming. The idea of referential transparency comes from DP, not FP.
Example: Prolog, a declarative language with many of the qualities of FP, yet not FP.
- silentbicycle 15y agoProlog is not really declarative except for the pure core, though. Cuts, assert, retract, etc. break its referential transparency.