Re: Do not use C++ style comments (// comments). Strict ANSI C compilers do not accept them.

2019-09-30 Thread Anders Åstrand
Thanks for your attention! That sentence made me believe the style guide was outdated, but then I found fairly recent posts referring to it and got confused.On Sep 26, 2019 10:53, Peter Eisentraut wrote:On 2019-09-25 00:13, Tom Lane wrote: > Peter Eisentraut writes: >> PostgreSQL 12 requires C9

Re: Do not use C++ style comments (// comments). Strict ANSI C compilers do not accept them.

2019-09-26 Thread Peter Eisentraut
On 2019-09-25 00:13, Tom Lane wrote: > Peter Eisentraut writes: >> PostgreSQL 12 requires C99, so those guidelines should probably be >> rephrased from "because old compilers don't accept it" to "because we >> like it that way". > > Yeah, or more formally "to encourage consistent coding style".

Re: Do not use C++ style comments (// comments). Strict ANSI C compilers do not accept them.

2019-09-24 Thread Tom Lane
Peter Eisentraut writes: > PostgreSQL 12 requires C99, so those guidelines should probably be > rephrased from "because old compilers don't accept it" to "because we > like it that way". Yeah, or more formally "to encourage consistent coding style". regards, tom lane

Re: Do not use C++ style comments (// comments). Strict ANSI C compilers do not accept them.

2019-09-24 Thread Peter Eisentraut
On 2019-09-23 16:39, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/11/source-format.html > Description: > > This sentence in the style guide feels outdated. // style comments have been > in the ANSI C st

Do not use C++ style comments (// comments). Strict ANSI C compilers do not accept them.

2019-09-23 Thread PG Doc comments form
The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/11/source-format.html Description: This sentence in the style guide feels outdated. // style comments have been in the ANSI C standard for almost 20 years now (C99 was accepted as ANSI standa