Re: [Boost-gil] Preferred line length

Subject: Re: [Boost-gil] Preferred line length
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2018-04-11 21:13:02


On 11 April 2018 at 22:45, Stefan Seefeld <stefan_at_[hidden]> wrote:
> On 04/11/18 16:40, Christian Henning wrote:
>>>
>>> I'd vote for 4 spaces. No tabs!
>>>
>> +1
>
>
> I'm not strictly against 4 spaces, but those spaces accumulate, and combined
> with a max line length, this yields more line breaks than otherwise
> necessary and thus will degrade code readability.

To me, 2 or 4 spaces works like a pixel gray intensity
which does not affect overall shape or flow of code.
I don't mind using both within scope, function, class.

I read both equally clean

  typedef typename binary_operation_obj
    <
      copy_and_convert_pixels_fn<CC>
>::result_type result_type;

    typedef typename binary_operation_obj
        <
            copy_and_convert_pixels_fn<CC>
>::result_type result_type;

> (I do find statements that fit into a single line very appealing...)

Me too, even at expense of adding extra intermediate variables if that helps :)

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net

This archive was generated by hypermail 2.1.7 : 2018-04-12 20:05:06 UTC