11RECORD, UNION, AND CLASS DATA TYPES

image

Records, unions, and classes are popular composite data types found in many modern programming languages. Incorrectly used, these data types can have a very negative impact on the performance of your software. Correctly used, however, they can actually improve the performance of your applications (compared with using alternative data structures). In this chapter we’ll explore how you can make the most of these data types to maximize the efficiency of your programs. The topics this chapter covers include:

  • Definitions for the record, union, and class data types

  • Declaration syntax for records, unions, and classes ...

Get Write Great Code, Volume 2, 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.