Go's approach to style is interesting. Besides having a language designed 
so that there usually is only one correct way to do things, when you 
install Go it installs a go fmt tool that can reformat text so that they 
follow the style guidelines. Then you can setup your text editor to 
automatically run the tool on the code when you save the file. This has 
lead to a remarkable degree of consistency in style for Go code.

On Tuesday, December 31, 2013 5:01:23 PM UTC+2, John Myles White wrote:
>
> One of the things that I really like about working with the Facebook 
> codebase is that all of the code was written to comply with a very thorough 
> internal style guideline. This prevents a lot of useless disagreement about 
> code stylistics and discourages the creation of unreadable code before 
> anything reaches the review stage. 
>
> In an attempt to emulate that level of thoroughness, I decided to extend 
> the main Julia manual’s style guide by writing my own personal style 
> guideline, which can be found at 
> https://github.com/johnmyleswhite/Style.jl 
>
> I’d be really interested to know what others think of these rules and what 
> they think is missing. Right now, my guidelines leave a lot of wiggle room. 
>
>  — John 
>
>

Reply via email to