[Pharo-project] Transcript rant

csrabak at bol.com.br csrabak at bol.com.br
Wed Apr 6 20:24:42 CEST 2011


Em 06/04/2011 09:07, Igor Stasenko <siguctua at gmail.com> escreveu:
> > On 6 April 2011 13:54, Fernando Olivero <fernando.olivero at usi.ch>
    wrote:

> > Hi Stef, i will as an initial step take Igor's suggestion and make
> > Transcript a global wich  points to an instance of TranscriptModel
> > ( the new name i propose for the current class taken from CUIS).
> > I still  believe that composition  is better then  inheritance for
> > handling different behaviors of the Transcript, so i argue against
> > making it a subclass of WriteStream and making it polymorphic with
> > a write stream instead.
> >
>  That's totally  not my concern. As  long as thing  which sits there
>  responds to writestream protocol , i don't care about rest.
> 

Would it make sense then to lift the methods from {write}stream and
put then in a Trait so the composition is made through reuse of code?

My 0.0199999....

--
Cesar Rabak



More information about the Pharo-project mailing list