Nice design henrik. You made me think so this is good.

On Sun, Feb 11, 2018 at 11:27 PM, Henrik-Nergaard <draag...@outlook.com> wrote:
> Hi Peter,
>
> I would just fill in the configuration and have it give me the correct
> client which uses the configuration instance.
>
> =========================
> | client |
>
> client  := TwitterConfiguration new
>   username: 'stuff';
>   password: 'password1';
>   port: '1234';
>   useHttps;
>   client.
>
> TwitterConfiguration >> #client
>     self perhapsValidateConfigurationHere.
>
>     ^ self clientClassDependingOnConfiguration on: self
>
> ========================================
>
> Best regards,
> Henrik
>
>
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>

Reply via email to