Skip to content

Commit

Permalink
Existing Style
Browse files Browse the repository at this point in the history
  • Loading branch information
elbrujohalcon committed Sep 5, 2014
1 parent 9ae796a commit c01d818
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,7 @@ Table of Contents:
##### Maintain existing style
> When editing a module written by someone else, stick to the style in which it was written. If a project has an overall style, stick to that when writing new modules as well.
```erlang
% bad
-exports([ function1
, i_like
, preceding_commas, i_dont, like_them
]).

% good
-exports([ function1
, i_like
, preceding_commas
, i_dont
, like_them
, but_i_respect_your_style
]).
```
*Examples*: [existing_style](src/existing_style.erl)

*Reasoning*: It's better to keep a module that just looks ugly to you than to have a module that looks half ugly to you, half ugly to somebody else.

Expand Down

0 comments on commit c01d818

Please sign in to comment.