Google C++ Style Guidefor .first and .second (often const-ref). for (const auto& item : some_map) { const KeyType& key = item.first; const ValType& value = item.second; // The rest of the loop can now just refer to key and list{// Comments in braced lists describe the next element .. "First item", // .. and should be aligned appropriately. 62 "Second item"}; DoSomething(); /* For trailing block comments, one space is fine0 码力 | 83 页 | 238.71 KB | 1 年前3
Google Java Style Guide@SomeAnnotation({a, b}) (no space is used) • String[][] x = {{"foo"}}; (no space is required between {{, by item 8 below) 4. On both sides of any binary or ternary operator. This also applies to the following “operator-like” Object.finalize. Tip: Don’t do it. If you absolutely must, first read and understand Effective Java Item 7, “Avoid Finalizers,” very carefully, and then don’t do it. 7 Javadoc 7.1 Formatting 7.1.1 General0 码力 | 19 页 | 84.76 KB | 1 年前3
02 Scientific Reading and Writing - Introduction to Scientific Writing WS2021/22University of Technology, WS 2021/22 Scope and Structure, cont. Bullet Lists begin{itemize} … \item \end{itemize} begin{enumerate} … \end{enumerate} Figures and Tables Captions below figures0 码力 | 26 页 | 613.57 KB | 1 年前3
Google Python Style Guideobject such as a list or a dictionary. If the function modifies the object (e.g., by appending an item to a list), the default value is modified. Decision: Okay to use with the following caveat: 9 Do0 码力 | 30 页 | 94.81 KB | 1 年前3
共 4 条
- 1













