Re: [Haskell wikibook] Article ANN: Theseus and the zipper
David House wrote:
> Seems like a weird point to break convention on, so I've changed it to
> use camelCase.
Ah, you're right, it doesn't look confusing at all :)
>> Well, this is too simple :) Without an extra parameter, why would you
>> want to run around and look at the subtrees? I mean, there's nothing
>> interesting at their top.
>
> To solve the maze? Sure, there's nothing to look at on the way, but
> you're trying to write a computer program maze here, the point of
> manipulating Labyrinths is to get to the end! :) Which makes me think;
> we could do with a Center constructor to indicate the end of the
> labyrinth.
Can be quite difficult to run around in a completely dark labyrinth :) I
also intended the extra parameter to hold (x,y)-coordinates for the
nodes to allow north-east and so on. In the picture, the concrete
labyrinth and the abstract structure look quite different.
>> Reading your remarks, I agree that the explanation of the first example
>> needs improvement. But I'd not showcase a second example. I mean, in the
>> end, the reader can only learn to construct a zipper by constructing one
>> himself, not by being showed how to construct one. Of course, he cannot
>> do the construction if he gets stuck with the showed example.
>
> I'm in fairly strong disagreement here. The example of a single zipper
> may not suffice, just as one explanation of a complicated concept will
> never do for everyone. People need to look at things from different
(Continue reading)