>>>>> "Toby" == Toby Hutton <[email protected]> writes:

    Toby> But I don't want to try and refactor the code you've
    Toby> provided without some tests to ensure everything is correct.
    Toby> Rule number one for refactoring. :) 

A very good reminder.

I'll write some simple (data, that is) test cases - I intend to
package it as a small library anyway - with type classes so I can
plug-in different search algorithms, and it's time I got to grips with
HUnit and QuickCheck.

   Anton> It's worth keeping in mind the lesson of the lambda
   Anton> calculus: that a local variable is just a
   Anton> function in disguise.

I'd never thought about that before.

Thanks to both of you for your suggestions. Most helpful.
-- 
Colin Adams
Preston Lancashire
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to