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.
  • "Obviously a class would not want to 'do' both Molecule::Organic and Molecule::Inorganic roles, they are mutually exclusive."

    I should point out there are organic macromolecules that have the properties of inorganic ones.

    So there are molecules out there that ->isa('Organic') but that by some clever tricks can ->does('Inorganic').

    excludes seems like a dangerous keyword...

    • Having pretty much failed high school chemisty myself, I will take your word on that. And to be honest, it is not my example, I took it direct from the most recent Fortress spec [sun.com].

      "excludes seems like a dangerous keyword..."

      It is.

      Probably the best use case for 'excludes' is for tightly coupled role heirarchies, in which you want to provide two mutually exclusive interfaces (immutable and mutable come to mind). While forcing this exclusion might not be 100% appropriate in all cases, it may be appropr