1 MAKING THE MOST OF THE TYPE SYSTEM
Clear and readable source code matters much more to humans than it does to computers. Whether we’re trying to debug existing code or learning to use a new feature, we inevitably find ourselves reading through source code. It’s important to ensure that our code is as readable as possible so that its meaning is clear to other readers. Code that’s hard to follow or easily misunderstood is a breeding ground for errors.
One way to improve the clarity of our code is to use the type system to our advantage by creating our own types and giving them names that clearly describe their purpose. Good names are important ...
Get The C# Type System 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.