Re: [9fans] Plan 9's style(6) manual page

2018-04-07 Thread Rob Ote
> Ultimately, the goal is to write code that fits in with the > other code around it and the system as a whole. The Go released a very good idea, go fmt imho, it is a better way

Re: [9fans] Plan 9's style(6) manual page

2018-04-07 Thread Skip Tavakkolian
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, 8hal...@airmail.cc wrote: > Just an amateur C programmer looking for answers. My main inspirations for > code style is K&R 2nd edition

Re: [9fans] Plan 9's style(6) manual page

2018-04-07 Thread tlaronde
On Sat, Apr 07, 2018 at 01:14:33PM -0700, Ori Bernstein wrote: > On Sat, 07 Apr 2018 19:00:37 +0300, 8hal...@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 s

Re: [9fans] Plan 9's style(6) manual page

2018-04-07 Thread Ori Bernstein
On Sat, 07 Apr 2018 19:00:37 +0300, 8hal...@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/styl

Re: [9fans] Plan 9's style(6) manual page

2018-04-07 Thread hiro
don't follow or pretend to follow rules you don't understand. i agree about the variable initialization example, it's totally fine to break the style rule in that case IMO. but i'm biased, i'm already used to people initializing all over the place.

Re: [9fans] Plan 9's style(6) manual page

2018-04-07 Thread Digby R.S. Tarvin
I disagree with your assertion that inserting space after 'if', 'for', 'while' etc is universal outside of Plan 9. I have never adopted that convention, and it looks ugly to me. That is probably because I learned C by reading the Unix kernel source code (6th Edition) which displays a preference fo

Re: [9fans] Plan 9's style(6) manual page

2018-04-07 Thread Jules Merit
That sums I.T. up On Sat, Apr 7, 2018, 9:02 AM <8hal...@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.

[9fans] Plan 9's style(6) manual page

2018-04-07 Thread 8halfan
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