diff --git a/Note-style-guide.md b/Note-style-guide.md index 378bc37..4677365 100644 --- a/Note-style-guide.md +++ b/Note-style-guide.md @@ -186,6 +186,10 @@ Examples: * ```Iterate``` +# Impls + +* Avoid `pub impl Type { ... }`. Instead put `pub ` modifiers on the method names. This allows a reader to immediately tell which methods are public at a glance. + # Predicates The names of simple boolean predicates should start with "is_" or similarly be expressed using a "small question word". @@ -200,10 +204,6 @@ Examples: A ```for``` loop is always preferable to a ```while``` loop unless the loop counts in a non-uniform way (making it difficult to express as a ```for```). -# Impls - -* Avoid `pub impl Type { ... }`. Instead put `pub ` modifiers on the method names. This allows a reader to immediately tell which methods are public at a glance. - # Questions and TODO * Do we want to prefer 'top-down' organization?