Scala's Stackable Trait Pattern

12 views
Skip to first unread message

James Ward

unread,
Oct 1, 2009, 7:47:09 PM10/1/09
to reflex-steer...@googlegroups.com
A bit off-topic but a great article:
http://www.artima.com/scalazine/articles/stackable_trait_pattern.html

I really wish AS3 had this kind of thing so that reflex could use
stackable traits for composition. Maybe there is some way we could
strap this sort of thing on.

BTW: An ideas on a MAX meetup? I could do Wed 11am.

-James

Tyler Wright

unread,
Oct 2, 2009, 11:34:48 AM10/2/09
to reflex-steer...@googlegroups.com
Very interesting article. We haven't yet found an implementation for Behaviors that we're happy with, but this is similar to what we're hoping to accomplish. I'll be playing around with it for sure.

I'd love a meetup. Seeing as I haven't yet scheduled anything I'm open to Wednesday 11am

Tyler

Tyler Wright

unread,
Oct 2, 2009, 2:01:02 PM10/2/09
to reflex-steer...@googlegroups.com
Jacob corrected me, we do have a Behavior implementation. After reviewing Scala's stackable trait pattern it's a good pattern but wouldn't be a good fit for Behaviors specifically, mainly because Behaviors are an extension of both functionality and API. Though there is certainly some inspiration here that may influence the final implementation.

Thanks for sharing James! It was definitely on topic.

Tyler

Ben Stucki

unread,
Oct 2, 2009, 8:04:55 PM10/2/09
to reflex-steer...@googlegroups.com
Great article. Like the other guys said, I don't think we'll be able to do quite the same thing, but we'll be moving in that direction at least. Also, I'm in for the meetup on Wed at 11am (after the Reflex 360|MAX preso). I'll also be around Sunday afternoon if anyone's up for dinner.

- Ben Stucki
Reply all
Reply to author
Forward
0 new messages