[Haskell-beginners] First code review

Brent Yorgey byorgey at seas.upenn.edu
Sun Feb 24 15:31:44 CET 2013

On Sun, Feb 24, 2013 at 06:29:22PM +1100, Erik de Castro Lopo wrote:
> Brent Yorgey wrote:
> > Since both the Grid and Heuristic values are created once and
> > then used in a read-only fasion, this is a perfect opportunity to use
> > arrays: see 
> > 
> >   http://hackage.haskell.org/packages/archive/array/latest/doc/html/Data-Array.html
> > 
> > Using read-only arrays is really quite simple (as opposed to
> > read/write arrays which require a monad of some sort).
> Brent, out of curiosity, why Array instead of Data.Vector?

No reason other than that I'm more familiar with Array.  Upon inspection of Data.Vector
it looks like that would indeed be a better choice.


More information about the Beginners mailing list