"with" should be deprecated with extreme prejudice

BCS none at anon.com
Sun May 17 20:16:44 PDT 2009


Hello Andrei,

> BCS wrote:
> 
>> Hello Andrei,
>> 
>>> dsimcha wrote:
>>> 
>>>> Absolutely not.  It's far too useful as syntactic sugar when
>>>> working heavily with plain old data structs, and saves a lot of
>>>> tedious repetition of the struct instance name.
>>>> 
>>> Make it a member function! If you don't have access to the struct,
>>> use "s." as the prefix! I can't believe that's stopping you from
>>> getting work done!
>>> 
>> I don't follow.
>> 
> "s." is hardly any typing.

wrong bit, I should have cut more:

> Make it a member function!

?





More information about the Digitalmars-d mailing list