Making Variable Declarations Easy
This section describes what you can do to streamline the task of declaring variables. To be sure, this is a small task, and you might think it's too small to deserve its own section in this book. Nevertheless, you spend a lot of time creating variables, and developing the right habits can save time and frustration over the life of a project.
Cross-Reference
For details on layout of variable declarations, see "Laying Out Data Declarations" in Laying Out Individual Statements. For details on documenting them, see "Commenting Data Declarations" in Commenting Techniques.
Implicit Declarations
Some languages have implicit variable declarations. For example, if you use a variable in Microsoft Visual Basic without declaring ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access