appeal again: discard the syntax of private:, public: static: private{}, public{}, static{}.

Frank Benoit keinfarbton at nospam.xyz
Sat Jun 24 04:37:34 PDT 2006


Boris Wang schrieb:
> the harm of these is more than the benefit.
> 
> all these syntax produce non-readable, non-maintainable codes, and even more 
> in large project with many developers. 
> 
> 

I second that.

- public statement;
- public {}
This is good, easy, consistent.

- public:
is ugly C++ style and a bad choice if you can do better. And in this
case you can always use the {} form, which expands the "public" until a
defined place.

Removing it will perhaps break some existing code, but it will also make
D another bit more easy.

Please also remove the inheritance protection.



More information about the Digitalmars-d mailing list