WithStatement
bearophile
bearophileHUGS at lycos.com
Sun Jul 24 12:51:52 PDT 2011
Shahid:
> I'm wondering what others think about extending the WithStatement to take
> a colon, which would create an implicit scope similar to how Attributes
> work. eg:
>
> T func( ... )
> {
> with ( Struct ):
>
> bar( Enum1.A );
> ...
If you extend this idea to if/while/for statements too, the end result is a Python-D:
http://delight.sourceforge.net/
Bye,
bearophile
More information about the Digitalmars-d
mailing list