[vlc-devel] [PATCH 02/23] macosx: helpers: add getVouts
Marvin Scholz
epirat07 at gmail.com
Thu Jun 29 16:32:48 CEST 2017
On 29 Jun 2017, at 16:20, Victorien Le Couviour--Tuffet wrote:
> On Thu, Jun 29, 2017 at 02:46:20PM +0200, Marvin Scholz wrote:
>> On 29 Jun 2017, at 14:24, Victorien Le Couviour--Tuffet wrote:
>>
>> Minor codestyle thing: I prefer to not put a space before and after
>> the ":",
>> this
>> is a very uncommon thing to do in Objective C.
>>
>> NSMutableArray<NSValue *> *vouts = [NSMutableArray
>> arrayWithCapacity:i_num_vouts];
>
> Do you actually want me to change this in all my patches? Don't get me
> wrong,
> I'm not saying that because I'm lazzy (even if I am), but because at
> several
> places in the code the applied norm was [qwe: qwe], and I did not
> changed that
> in my patches (in the most of it at least). I do think it helps a lot
> with code
> readability when having long expressions such as:
>
> [_puzzleRowsTextField setAttributedStringValue: [[NSAttributedString
> alloc] initWithString: @"isSpinBox"]];
Well for me used to not having a space there, it is actually a bit
confusing as I would expect the start of the next
named argument after a space. (See
https://stackoverflow.com/a/4057024/1019236 if you want, which explains
this very well).
But I know that a lot of code is written in the style you used, so it is
ok keeping it that way.
>
> (which is just an example among a lot of others, including blocks of
> code like this)
>
> Would you agree that I keep the lines following this norm as they are,
> and update the others to it?
> Obviously, if you don't I will update my patches to the [qwe:qwe] norm
> as you wished.
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list