Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
!#$




Lifting your favorite
language with Traits
       Alexandre Bergel
      RMoD team, INRIA,
          Lille, France...
Outline

1. Limitation of single inheritance
2. Traits
3. Retrospective
4. Freezable  Stateful
5. Conclusion
Stream in Squeak


• Example of a library that has been in use for
  almost 20 years
• Contains many flaws in its design
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Presentation of Traits
Prochain SlideShare
Chargement dans…5
×

0

Partager

Télécharger pour lire hors ligne

Presentation of Traits

Télécharger pour lire hors ligne

Traits are a simple composition mechanism for structuring object-oriented programs. A Trait is essentially a parameterized set of methods; it serves as a behavioral building block for classes and is the primitive unit of code reuse. With Traits, classes are still organized in a single inheritance hierarchy, but they can make use of Traits to specify the incremental difference in behavior with respect to their superclasses.

Livres associés

Gratuit avec un essai de 30 jours de Scribd

Tout voir

Livres audio associés

Gratuit avec un essai de 30 jours de Scribd

Tout voir
  • Soyez le premier à aimer ceci

Presentation of Traits

  1. 1. !#$ Lifting your favorite language with Traits Alexandre Bergel RMoD team, INRIA, Lille, France alexandre@bergel.eu
  2. 2. Outline 1. Limitation of single inheritance 2. Traits 3. Retrospective 4. Freezable Stateful 5. Conclusion
  3. 3. Stream in Squeak • Example of a library that has been in use for almost 20 years • Contains many flaws in its design

Traits are a simple composition mechanism for structuring object-oriented programs. A Trait is essentially a parameterized set of methods; it serves as a behavioral building block for classes and is the primitive unit of code reuse. With Traits, classes are still organized in a single inheritance hierarchy, but they can make use of Traits to specify the incremental difference in behavior with respect to their superclasses.

Vues

Nombre de vues

1 847

Sur Slideshare

0

À partir des intégrations

0

Nombre d'intégrations

105

Actions

Téléchargements

23

Partages

0

Commentaires

0

Mentions J'aime

0

×