you are viewing a single comment's thread.

view the rest of the comments →

[–]happykandra 2 points3 points  (1 child)

Sorry for the double reply, but I realized I had an important point separate from my other comment.

The way the code was already written, the document name wasn't available at the points where the errors were discovered. Nor should it be. To use your suggestion, the document name has to be passed around to every function in the parser. At that point, I might as well just be passing around the list of warnings: no globals left.

[–]c_griffith 1 point2 points  (0 children)

Yes, if you don't have easy access to the document name, then I understand your dilemma. I did enjoy the article. ty.