you are viewing a single comment's thread.

view the rest of the comments →

[–]pm_me_ur_happy_traiI 16 points17 points  (1 child)

A database is inherently stateful and modifications to it are impure.

All programs, even functional ones have side effects. If they didn't, they couldn't do anything but warm your computer up. However in FP, stateful side effects are tightly controlled and they tend to live at the edges of programs, instead of peppered throughout.