Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Either I didn't think of it at the time of blogging, or I forgot about it, but another nice thing about using contextuals rather than instance attributes is that the class becomes thread-safe. In other words, you can suddenly use the same instance of Yapsi::Compiler to compile two different sources simultaneously. The contextuals will be local to each thread and not interact; instance attributes would have been shared and cause a bit of trouble.

    Yapsi::Compiler currently only has one instance attribute: @.warnings -- this is so that one can query the object for warnings after compilation. Maybe we should factor this one out into a result object of some sort, returned from the .compile method. But, meh; YAGNI.