Key Points

  • Working with specific data types means remembering many individual rules for each type. Use this chapter's checklist to make sure that you've considered the common problems.

  • Creating your own types makes your programs easier to modify and more self-documenting, if your language supports that capability.

  • When you create a simple type using typedef or its equivalent, consider whether you should be creating a new class instead.

Get Code Complete, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.