Improve D's syntax to make it more python like

Adam D. Ruppe destructionator at gmail.com
Sat Mar 22 09:34:22 PDT 2014


On Saturday, 22 March 2014 at 16:19:44 UTC, MattCoder wrote:
> Please someone could show a little example of the quote above? I
> mean it would act like C preprocessor or in D it has another
> meaning?

You would write a little program that sees changes of indentation 
and puts the braces in. So

foo
   bar
   baz
whatever

It would see that bar and baz are indented together and put {} 
around it, making:

foo
{ bar
   baz }
whatever

or something like that, which can then be fed into the D compiler 
normally.


More information about the Digitalmars-d mailing list