"with" should be deprecated with extreme prejudice

Nick Sabalausky a at a.a
Mon May 18 12:23:17 PDT 2009


"Leandro Lucarella" <llucax at gmail.com> wrote in message 
news:20090518141908.GB9277 at burns.springfield.home...
> bearophile, el 18 de mayo a las 04:33 me escribiste:
>> Andrei, I agree that "with" is dangerous when it shadows outer names
>> (Python designers have not added a "with" because of this).
>
> They did, but with different semantics =)
> It's used for RAII (I guess you already know that, but maybe other people
> don't).
>

You mean like C#'s "using"? 





More information about the Digitalmars-d mailing list