Thinking functionally with Haskell

  By Thom Holwerda, based on submission by MOS6510 - Posted on 2012-09-06 18:07:20 UTC at http://OSNews.com

"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 [http://pragprog.com/magazines/2012-09/thinking-functionally-with-haskell] - are very flexible, and allow these descriptions to be quite detailed; plus they are not too obtrusive in use and often very helpful."

Original story page here.

Copyright OSNews.com 1997-2006. All Rights Reserved. OSNews and the OSNews logo are trademarks of OSNews.
All trademarks, icons, and logos, shown or mentioned in this web site, are the property of their respective owners.
Reproduction of OSNews stories is granted only by explicitly receiving authorization from OSNews and if credit is given to OSNews.
Privacy statement   -   Notice to Bulk Emailers