← Back to team overview

elementary-dev-community team mailing list archive

Re: Coding Style - Parentheses and whitespace

 

Yup, option 1.

On Dec 14, 2011, at 10:01 AM, Allen Lowe 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



References