Improve D's syntax to make it more python like

bearophile bearophileHUGS at lycos.com
Sat Mar 22 18:38:05 PDT 2014


Colden Cullen:

> [1] https://github.com/ColdenCullen/wsd

Looks like a good start. I could even use that syntax in some 
cases :-) (like some script-like programs).

Using just an indent to define a sub-block seems a little too 
much brittle. So perhaps a specific keyword or symbol could be be 
used.

In Python there is also the keyword "pass" that could be useful 
here.

It could also be useful some way to switch back to normal D 
syntax inside a file, to solve some problem (like to simplify 
mixins creation).

Bye,
bearophile


More information about the Digitalmars-d mailing list