From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 7 Apr 2018 13:14:33 -0700 From: Ori Bernstein To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Message-Id: <20180407131433.6819fa0c7eec6bac85da70c2@eigenstate.org> In-Reply-To: <731be915ba87d1709cedd619aac23c0f@airmail.cc> References: <731be915ba87d1709cedd619aac23c0f@airmail.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Plan 9's style(6) manual page Topicbox-Message-UUID: d3f87e0a-ead9-11e9-9d60-3106f5b1d025 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