[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200724181453.GH3703@twin.jikos.cz>
Date: Fri, 24 Jul 2020 20:14:53 +0200
From: David Sterba <dsterba@...e.cz>
To: Matthew Wilcox <willy@...radead.org>
Cc: Steven Rostedt <rostedt@...dmis.org>,
Jonathan Corbet <corbet@....net>,
Peter Zijlstra <peterz@...radead.org>,
linux-doc@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>
Subject: Re: Minor RST rant
On Fri, Jul 24, 2020 at 06:41:30PM +0100, Matthew Wilcox wrote:
> I think we're all pretty comfortable seeing function names adorned with
> a closing pair of parens. The ``...`` to adorn constants feels OK to me,
> but maybe not to you? If that feels excessive, can you suggest something
> that would distinguish between POSIX and AT_EMPTY_PATH?
>
> [1] Too far being a subjective measure, of course. My preferences
> are on display in core-api/xarray.rst
I like that minimalistic style and I'd suggest to use the quotes only
for the document-specific definitions, eg. the XA_ macros, and drop
quotes around NULL or other standard macros like LONG_MAX. The quotes
are hilighted in vim and seeing NULL is actually distracting.
Functions get automatically converted to html links so this does not
need to be explicitly quoted, but similar to wikipedia style, the first
mention could be quoted to provide a visual anchor.
Powered by blists - more mailing lists