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

Boris Wang nano.kago at hotmail.com
Fri Jun 23 04:21:35 PDT 2006


"xs0" <xs0 at xs0.com> ??????:e7gddu$26gk$1 at digitaldaemon.com...
> Regan Heath wrote:
>> On Fri, 23 Jun 2006 17:05:15 +0800, Boris Wang <nano.kago at hotmail.com> 
>> wrote:
>>> 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.
>>
>> My vote is against removing these. I use them and prefer the : syntax for 
>> private etc within class/struct declarations.
>
> My vote is against having either public: or public {} :)
>
> With both you can't see what applies to a declaration from the declaration 
> alone, but have to scan backwards for an arbitrary amount of lines..
>

Just because these reason.

private a_type var;

public static int func(...)
{
}

this syntax is simple, clean and enough.

>
> xs0 





More information about the Digitalmars-d mailing list