forked from OSchip/llvm-project
parent
a845ef0be7
commit
611a1883e5
|
@ -682,7 +682,7 @@ More importantly, it <em>forces you to pick a name</em> for the function, and
|
|||
forces you to write a comment for it. In this silly example, this doesn't add
|
||||
much value. However, if the condition is complex, this can make it a lot easier
|
||||
for the reader to understand the code that queries for this predicate. Instead
|
||||
of being faced with the in-line details of we check to see if the BarList
|
||||
of being faced with the in-line details of how we check to see if the BarList
|
||||
contains a foo, we can trust the function name and continue reading with better
|
||||
locality.</p>
|
||||
|
||||
|
|
Loading…
Reference in New Issue