Thinking functionally with Haskell

“Imagine an approach to programming where you write down some description of what your code should do, then before running your code you run some automatic tool to see if the code matches the description. That’s Test-driven development, you say! Actually, this is what you are doing when you use static types in most languages too. Types are a description of the code’s inputs and outputs, and the check ensures that inputs and outputs match up and are used consistently. Modern type systems – such as in Haskell or above – are very flexible, and allow these descriptions to be quite detailed; plus they are not too obtrusive in use and often very helpful.”

9 Comments

  1. 2012-09-07 8:27 pm
    • 2012-09-08 1:20 am
      • 2012-09-08 2:57 am
        • 2012-09-08 4:43 am
          • 2012-09-08 5:32 am
          • 2012-09-08 6:25 am
      • 2012-09-09 6:45 am
        • 2012-09-09 6:12 pm
  2. 2012-09-08 4:36 am