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
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.
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
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.
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
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
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
> 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