From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <731be915ba87d1709cedd619aac23c0f@airmail.cc> <20180407131433.6819fa0c7eec6bac85da70c2@eigenstate.org> In-Reply-To: <20180407131433.6819fa0c7eec6bac85da70c2@eigenstate.org> From: Skip Tavakkolian Date: Sat, 7 Apr 2018 20:42:33 +0000 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="f4f5e80e253cf4d7a00569483651" Subject: Re: [9fans] Plan 9's style(6) manual page Topicbox-Message-UUID: d4030ac8-ead9-11e9-9d60-3106f5b1d025 --f4f5e80e253cf4d7a00569483651 Content-Type: text/plain; charset="UTF-8" Just use cb(1) and follow the house style. http://man.cat-v.org/plan_9/1/cb On Apr 7, 2018 1:21 PM, "Ori Bernstein" wrote: On Sat, 07 Apr 2018 19:00:37 +0300, 8halfan@airmail.cc wrote: > Just an amateur C programmer looking for answers. My main inspirations for > code style is K&R 2nd edition and I'm curious about the instructions in Plan > 9's style(6) manual page (for reference, > http://man.cat-v.org/plan_9/6/style). I've > tried to think about the motivations, but not everything is as clear as > it seems. The manpage explains the reasoning: Ultimately, the goal is to write code that fits in with the other code around it and the system as a whole. So, most of the answers to your questions are simply that someone had a preference early on. They wrote the code. If you want your code to fit in with theirs, this is how to do it. -- Ori Bernstein --f4f5e80e253cf4d7a00569483651 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Just use cb(1) and follow the house style.=C2=A0



On A= pr 7, 2018 1:21 PM, "Ori Bernstein" <ori@eigenstate.org> wrote:
On Sat, 07 Apr 2018 19:00:37 +0300, 8halfan@airmail.cc= wrote:

> Just an amateur C programmer looking for answers. My main inspirations= for
> code style is K&R 2nd edition and I'm curious about the instru= ctions in Plan
> 9's style(6) manual page (for reference,
> http://man.cat-v.org/plan_9/6/style). I'v= e
> tried to think about the motivations, but not everything is as clear a= s
> it seems.

The manpage explains the reasoning:

=C2=A0 =C2=A0 Ultimately, the goal is to write code that fits in with the =C2=A0 =C2=A0 other code around it and the system as a whole.

So, most of the answers to your questions are simply that someone had a
preference early on. They wrote the code. If you want your code to fit
in with theirs, this is how to do it.

--
=C2=A0 =C2=A0 Ori Bernstein


--f4f5e80e253cf4d7a00569483651--