1 Jun 2008 16:17
Re: Fwd: [Haskell-cafe] Data.Tree.Zipper in the standard libraries
Neil Mitchell <ndmitchell <at> gmail.com>
2008-06-01 14:17:47 GMT
2008-06-01 14:17:47 GMT
Hi Krasimir, What is the strong justification for adding this to the base library? Is there some particular reason that it can't be done outside of base, or is there some particular need that makes this code desirable in the base libraries? Could it be added as a separate library on hackage, worked on for a while, and then merged into the base latter if appropriate? I worry that in the last couple of weeks since you first brought this code up it seems like its been reimplemented from scratch with a different interface. Once it goes in the base library, those decisions are fixed in stone. If it gets some real world use in a library first, then its much clearer if there are any flaws or extensions required. Thanks Neil On Sat, May 31, 2008 at 6:12 PM, Don Stewart <dons <at> galois.com> wrote: > It's not wasted work. As far as I know, only Ian advocates against > including tests. > > Having worked on several data structure libraries, I've found that > QuickCheck regularly catches errors that appear, and ensure over the > long term that code remains stable. > > -- Don > > kr.angelov:(Continue reading)

in the splitChildren
> > function which is now fixed.
>
> So just to check, this proposal is to add Data.Tree.Zipper to containers
> and the QC tests to the testsuite, right?
>
> As I've explained before[1], I don't think that QuickCheck tests are a
> good way to test libraries: They tend to test the same inputs (e.g. [])
> or equivalent inputs (e.g. "insert 2 [3]" and "insert 3 [4]") many
> times, meaning it takes much longer to get the same level of testing as
RSS Feed