Thread (2 messages) 2 messages, 2 authors, 2025-02-03

Re: [PATCH v2 15/20] compat: consistently resolve headers via project root

From: Patrick Steinhardt <hidden>
Date: 2025-02-03 08:40:54

On Wed, Jan 29, 2025 at 06:23:36AM -0800, Junio C Hamano wrote:
Johannes Sixt [off-list ref] writes:
quoted
Depending on the desired goal, is it perhaps better to use <> brackets
more liberally?
I'd be in general in favor of that direction, as the semantics of <>
is more clear than "" from the point of view of the standard ;-)
Hm. Semantics are indeed clearer when using <>, but I think that in this
context "" still conveys more about where a specific header comes from.
I know it's not the whole truth, but "" is typically taken to mean "the
header comes from our own sources", whereas <> is typically taken to
mean that it is provided by the system.

So if we now e.g. started to `#include <compat/msvc.h>` I wonder whether
this would really result in code that is easier to understand, even if
it is technically correct.

I dunno -- I think I'll punt on the issue for now and drop the commit,
because I'd rather want to not start discussing this in the context of
this series here. I'm happy to discuss this as a subsequent step though.

Patrick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help