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

Regan Heath regan at netwin.co.nz
Sat Jun 24 18:02:18 PDT 2006


On Sat, 24 Jun 2006 18:39:54 +0800, Boris Wang <nano.kago at hotmail.com>  
wrote:
> What you said is that, i can't has a good feeling about reading your
> program, just because i has not such  a editor?
>
> In other words, you force the other readers to use the editor you use?

How is that any different to you forcing people to code using the forms  
you prefer?
Even without an editor that collapses : and {} I find Dereks example  
easier to read.

Regan

> "Derek Parnell" <derek at psych.ward> Ð 
> ´ÈëÏûÏ¢ÐÂÎÅ:op.tbml4bwn6b8z09 at ginger.vic.bigpond.net.au...
>> On Sat, 24 Jun 2006 10:22:00 +1000, Boris Wang <nano.kago at hotmail.com>
>> wrote:
>>
>>> And this is what ?
>>>
>>>>
>>>>       // six pages
>>>>      ...
>>>>
>>>>        int func3(...)
>>>>        {
>>>>        }
>>>>        int func4(...)
>>>>        {
>>>>        }
>>>>        int func5(...)
>>>>        {
>>>>        }
>>>>        int func6(...)
>>>>        {
>>>>        }
>>>>        int func7(...)
>>>>        {
>>>>        }
>>>>        a_type var2;
>>>>     }
>>>>     int func2(...)
>>>>     {
>>>>     }
>>>>     a_type var4;
>>>>     int func5(...)
>>>>     {
>>>>     }
>>>> }
>>
>> Excellent, that is what it is. To find out whether it is
>> public/private/static/version/debug effected, place your cursor on the
>> final "}" and press ctrl-[ to jump to the matching brace. This assumes  
>> you
>> are using Crimson Editor of course ;-)
>>
>> The point is, writing organised and predicatable code is less costly in
>> the long run. We also have access to tools (i.e good editors) that can
>> help us.
>>
>> --
>> Derek Parnell
>> Melbourne, Australia
>
>




More information about the Digitalmars-d mailing list