property syntax strawman
Oliver Hoog
kingboscop at gmail.com
Sun Aug 2 09:07:39 PDT 2009
> ---
> bool foo {
> in(bar) { ... }
> out { return ... }
> }
> ---
Actually it's also enough with the surrounding scope.
And fast to write, just one line:
bool foo in(bar) {...} out {...}
Everyone that sees this for the first time can see what it means. And
it's more intuitive syntax than
bool empty { ... }
void empty=(bool b) { ... }
With the first syntax above you would have to specify the type (bool in
this case) only once.
More information about the Digitalmars-d
mailing list