Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
iwwr
on May 31, 2011
|
parent
|
context
|
favorite
| on:
Imperative vs Functional Programming
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
on May 31, 2011
[–]
Prolog is not really declarative except for the pure core, though. Cuts, assert, retract, etc. break its referential transparency.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Example: Prolog, a declarative language with many of the qualities of FP, yet not FP.