[phobos] Initial Phobos style guide proposal

Andrei Alexandrescu andrei at erdani.com
Thu Mar 31 13:31:42 PDT 2011


On 3/31/11 3:20 PM, Jacob Carlborg wrote:
>
> On 31 mar 2011, at 20:58, Andrei Alexandrescu wrote:
>
>> On 3/31/11 1:39 PM, Jacob Carlborg wrote:
>>>> I would love that and think that it would be a _big_ improvement, but there
>>>> are some folks (Andrei in particular) who seem to really not like code going
>>>> beyond 80 characters. I do know that there are other Phobos devs who _do_ want
>>>> longer line lengths though, so maybe we can change this. Where this really
>>>> gets to be a problem is with lines with several levels of indentation, and
>>>> trying to restrict the line length (particularly to something short like 80
>>>> characters) tends to encourage overly short and non-descriptive variable and
>>>> function names, which is _not_ good.
>>>
>>> Can't everyone that likes to keep the horizontal length to 80 characters use word wrapping?
>>
>> No, and please let's not take this one bit further.
>
> So you just want to end the discussion when someone disagrees with you?

This is a misunderstanding. I just wanted to preempt a discussion along 
the lines "but why?" to which some arguments would be made followed by 
"but you could try X, would that work?" etc. People have tried, and for 
the time being there is no satisfactory solution for auto wrapping.


Andrei


More information about the phobos mailing list