Re: [PATCH RFC] codingconventions: add lambda guidelines

2024-01-11 Thread Gerald Pfeifer
On Thu, 11 Jan 2024, Jason Merrill wrote: > Now in patch form! It appears quite clear to me. (At first I thought we need to escape the '&' in "[&] (tree arg)" as "&", but checking with validator.w3.org apparently not so in this specific context.) Gerald

Re: [PATCH RFC] codingconventions: add lambda guidelines

2024-01-11 Thread Marek Polacek
On Thu, Jan 11, 2024 at 04:33:10PM -0500, Jason Merrill wrote: > Now in patch form! > > Any further comments? It looks good to me, but it doesn't say if we want to put a space after } and before () if we're invoking the lambda (I suppose we want that space). As in ... = [&] (tree arg) { ... }

[PATCH RFC] codingconventions: add lambda guidelines

2024-01-11 Thread Jason Merrill
Now in patch form! Any further comments? --- htdocs/codingconventions.html | 60 +++ 1 file changed, 60 insertions(+) diff --git a/htdocs/codingconventions.html b/htdocs/codingconventions.html index f5a356a8..2bbf6670 100644 --- a/htdocs/codingconventions.html ++