"with" should be deprecated with extreme prejudice

Leandro Lucarella llucax at gmail.com
Mon May 18 07:19:11 PDT 2009


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).

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------



More information about the Digitalmars-d mailing list