matburton / sudoku_solver

Pet project to learn languages writing a sudoku solver
0 stars 0 forks source link

Data structures are immutable by convention only #2

Open matburton opened 11 years ago

matburton commented 11 years ago

Currently the F# version uses arrays in the grid data structure

Arrays aren't immutable, however the code does avoid mutation and assumes no mutations at the moment

It would be good to see if we could use an ImmutableArray: http://blogs.msdn.com/b/dotnet/archive/2013/06/24/please-welcome-immutablearray.aspx

matburton commented 11 years ago

At the moment I think this bug prevents us from even considering using that library: http://stackoverflow.com/questions/14017219/pre-release-collections-immutable