curl-library
Re: CODE_STYLE
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 14 Mar 2016 14:26:28 +0100 (CET)
Date: Mon, 14 Mar 2016 14:26:28 +0100 (CET)
On Mon, 14 Mar 2016, Gisle Vanem wrote:
> Speaking of "easier on the eye". Calling of func-pointers like:
> cb(user, el->ptr); (hash.c / 224).
>
> is IMHO clearer if it was written like:
> (*cb)(user, el->ptr);
Ah, then that marks the outer edge of our agreement! =) I prefer the upper
version to the lower version. I think perhaps because of the removed extra
"rubbish" characters - cleaner. Even if I agree that the upper version shows
less details about what 'cb' actually is.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2016-03-14