Aria Stewart (aredridel) wrote,
Aria Stewart
aredridel

From Why Does Haskell Matter?:

Removing side-effects from the equation allows expressions to be evaluated in any order (although not all functional languages use this). A function will always return the same result if passed the same input. This determinism removes a whole class of bugs found in imperative programs. In fact, I would even go as far as to say that most bugs in large systems can be traced back to side-effects - if not directly caused by it, then caused by a flawed design made possible only by using side-effects. Functional programs will most often have less bugs!

This is dead on.

Subscribe

  • (no subject)

    You do occasionally visit Boston Public Library, yes? If not, get on it! You were raised in and on libraries. They are in your blood! You…

  • (no subject)

    "I had never been in a room of people who were going to say 'yes' to me before." My friend and I crammed into a rush hour crowded train…

  • Recipe: Storm in the Garden

    Recipe: Storm in the Garden Ingredients 10 ml lavender vodka 10 ml orange vodka 10 ml hibiscus vodka 200 ml ginger ale ice…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments