http://qs321.pair.com?node_id=359703


in reply to Re: Open to debate on mixins and traits.
in thread Open to debate on mixins and traits.

Yes. I did/do tend to mix up the terminology. When I used the word "trait", I was thinking of the Traits definition and Perl6 Roles.

But then I threw in the :trait syntax which is wrong! But that just serves to emphasis the (my?) confusion both with the naming and the P6 differentiation, which still leave me perplexed.

I'm still thinking about your other points. I may get back to you if I have questions arising :) Thanks.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail

Replies are listed 'Best First'.
Re^3: Open to debate on mixins and traits.
by adrianh (Chancellor) on Jun 02, 2004 at 23:08 UTC
    But that just serves to emphasis the (my?) confusion both with the naming and the P6 differentiation, which still leave me perplexed.

    It's perfectly simple.

    We have Perl 6 traits, which are different from Self traits, both of which are different from Xerox Star traits, all three of which are different from the Traits described in traits paper - which Perl 6 will call roles. Except roles have state with the traits paper Traits don't.

    Traits (that is Perl 6 traits, not the trait paper traits, Self traits or Xerox Star traits) are roles applied to declared items like classes and containers. Unless they are applied at runtime in which case they are called properties.

    Confused? You won't be after the next episode of... Soap!

    ;-) * 0.5

    (Okay, I admit it, I've still not found the time to more than skim A12 so I may have got some of the above wrong, and there is probably a nice simple structure in there that's not managed to find its way into my head yet)

      Confused? If you aren't, you are (LW|TheDamian|deluded).

      If it wasn't so funny it would be serious:)

      Re:Soap! I'd love to see a modern remake of that. Just think what they could do with special effects and a descent budget--maybe as a movie, but then it wouldn't be a soap, unless it was a movie about a soap?)


      Examine what is said, not who speaks.
      "Efficiency is intelligent laziness." -David Dunham
      "Think for yourself!" - Abigail
      Confused? You won't be after the next episode of... Soap!
      But I always felt more confused after the next episode of Soap, and I'm getting close to the same point with each next episode of /[AES]\d+/.

      I got most of A12, but every so often my eyes would just go out of focus and a minute later, 2 paragraphs down I'd wonder what I had just read.