Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Use K&R style for functions brackets #77

Open
felipeanchieta opened this issue Jun 24, 2015 · 5 comments
Open

Use K&R style for functions brackets #77

felipeanchieta opened this issue Jun 24, 2015 · 5 comments

Comments

@felipeanchieta
Copy link

The current snippet provides the following style for functions brackets:

type function_name(args) {
    // code
}

But most C (and C++) programmers makes use of K&R style for its readability:

type functions_name(args) 
{
    // code
}

I've already submitted a commit trying to change this.

@felipeanchieta felipeanchieta changed the title 🎨 Use K&R style for functions brackets Use K&R style for functions brackets Jun 24, 2015
@anaisbetts anaisbetts changed the title Use K&R style for functions brackets Use BSD style for functions brackets Jun 24, 2015
@anaisbetts
Copy link

(Making dumb mistakes, forever)

@anaisbetts anaisbetts changed the title Use BSD style for functions brackets Use K&R style for functions brackets Jun 24, 2015
@az-z
Copy link

az-z commented Oct 15, 2015

@felipeanchieta
Copy link
Author

Exactly, @az-z.

@thomasjo
Copy link
Contributor

I'm opposed to changing the current default, at the very least I'd consider it a breaking change, and as such would have to be postponed until Atom v2.

What I am in favor of though, is figuring out a means of allowing users to customize code style used in snippets. That's not trivial however, but worth pursuing.

/cc @atom/feedback

@az-z
Copy link

az-z commented Oct 16, 2015

Felipe,
Why not to use it then?
//just curious.
On Oct 16, 2015 6:28 AM, "Felipe Anchieta" notifications@github.com wrote:

Exactly, az-z.


Reply to this email directly or view it on GitHub
#77 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants