The general guidelines appear to be: * put opening braces at the end of the line * indent by four spaces * restrict lines to 100 characters or less
In the future, the pretty printer may be improved such that it's suitable for automatically applying these rules, as per gofmt. On Tue, Apr 9, 2013 at 2:25 AM, Andres Osinski <[email protected]>wrote: > This may have been answered elsewhere, but I was wondering if the Rust > community has developed anything similar to Python's PEP8 for an idiomatic > convention for structuring code? > > The examples of both Python and Go seem to indicate that there's great > benefit in having a normalized coding style for code in the wild. > > -- > Andrés Osinski > http://www.andresosinski.com.ar/ > > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev > >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
