octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Coding Style


From: Bill Denney
Subject: Coding Style
Date: Mon, 20 Feb 2006 22:07:59 -0500 (EST)

So, I generally don't code things the same way that is generally used in the internals of Octave. One thing I was just looking at was the current plotting routines (with gnuplot), and I noticed that some parts (specifically in bar.m) had

if (something)
  ...
else
  error (message)
endif

My general preference is to have code indented less, and I think that less indentation generally makes code more readable. I would code it as

if (~ something)
  error (message)
endif
...

So I have two questions: is there a document that describes current coding preferences in octave? Is the previous coding method preferred for some reason or was it just how the code came out?

Bill

--
From Dumblaws.com:  In Cambodia, water guns may not be used in New
Year's celebrations.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]