On Tue, Jan 7, 2014 at 2:42 AM, Patrick McManus <mcma...@ducksong.com> wrote:
> I'm fine with enforcing a gecko wide coding style as long as it comes with
> cross platform tools to act as arbiter.. it is something that needs to be
> automated and isn't worth the effort of trying to get everybody on the same
> page by best effort.

Yes.

It's very annoying that our (well, at least "our" in the DOM-ish parts
of the code base) current line wrapping conventions don't come
naturally from Eclipse CDT, for example, so I end up doing a lot of
formatting manually even though formatting should be something that
the IDE does.

If we put a  lot of effort into standardizing code style, we should
use a style that can be taught to Eclipse CDT, XCode, VisualStudio,
Emacs, vim, etc. even if that means that we have to make the rules
less refined.

On Mon, Jan 6, 2014 at 6:07 PM, Adam Roach <a...@mozilla.com> wrote:
> * Don't reformat third-party code.

* Don't reformat generated code. (If you must, change the generator
accordingly or add an automated post-processor.)

* Don't enforce C++ style on non-C++ code. (I don't work on the Fennec
front end, so maybe I should not care, but it saddens me to see naming
conventions that go against the Sun conventions / defaults of every
Java IDE there.)

-- 
Henri Sivonen
hsivo...@hsivonen.fi
https://hsivonen.fi/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to