← Back to team overview

elementary-dev-community team mailing list archive

Re: Coding Style - Parentheses and whitespace

 

There's an internal one that's pretty thorough, but I don't know who has access to see it or if I should share the link.

On Dec 14, 2011, at 10:05 AM, Jaap Broekhuizen wrote:

> Is there documentation on the current accepted coding style by the way? Because the document on the elementary site is kind of empty...
> 
> Regards,
> Jaap
> 
> On Wed, Dec 14, 2011 at 5:01 PM, Allen Lowe <lallenlowe@xxxxxxxxx> wrote:
> the correct format is option 1 I believe.
> 
> Allen Lowe
> 
> On Wed, Dec 14, 2011 at 8:50 AM, David Gomes <davidrafagomes@xxxxxxxxx> wrote:
> > I've been having this doubt ever since I joined the dev team:
> >
> > 1: printf ("Hello elementary devs\n");
> > 2: printf("Hello elementary devs\n");
> >
> > 1: var my_object = new Class ();
> > 2: var my_object = new Class();
> >
> > Which one is the one we adapted, with or without a space precending
> > parentheses? Thanks.
> >
> > --
> > David Gomes
> >
> > --
> > Mailing list: https://launchpad.net/~elementary-dev-community
> > Post to     : elementary-dev-community@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~elementary-dev-community
> > More help   : https://help.launchpad.net/ListHelp
> 
> --
> Mailing list: https://launchpad.net/~elementary-dev-community
> Post to     : elementary-dev-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~elementary-dev-community
> More help   : https://help.launchpad.net/ListHelp
> 
> -- 
> Mailing list: https://launchpad.net/~elementary-dev-community
> Post to     : elementary-dev-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~elementary-dev-community
> More help   : https://help.launchpad.net/ListHelp


References