I didn't get the this==last logic
Obviously not all of them. You are correct that the “last” node is an attribute of the whole List, not the node.
Paul Clapham wrote:. . . Campbell has already pointed out the many faults of that code . . .
Agree; I think you can learn more from seeing how had code goes wrong than from beautiful code which runs correctly first time.
But it's still worthwhile asking questions like yours even when the code you're looking at is flawed. . . .
Stephan van Hulst wrote:I have a more pessimistic outlook. Many people in the industry are bad at application design. Some of those write books.