UFCS idea

Alex_Dovhal alex_dovhal at yahoo.com
Wed Jun 8 15:13:39 PDT 2011


"Dmitry Olshansky" <dmitry.olsh at gmail.com> wrote:
>> Sure here you can, but in more complex cases or when you don't want to
>> strain you mind and memory.
>> a.someUnknownToReaderFunc(b).otherNotOftenUsedFunc(c)
>>
> Generally they are known to reader - they are free functions (and even 
> small subset of those) anyway, not some scary monsters from hell. And 
> you'd have to strain your mind and memory to check docs anyway.
> And of course bad pick of position for this argument is clearly possible.
> It's good thing that it remains in control of library writer, not user. 
> Thus combinations stay limited, as careful library writer is usually 
> expected thing, as for user it's not exactly.

Agree. 




More information about the Digitalmars-d mailing list