Главная
Study mode:
on
1
Intro
2
What are types
3
Historical languages
4
First programming experience
5
Second programming experience
6
Pascal
7
what is a type system
8
whats a type system
9
type system
10
strong
11
explicit vs implicit
12
What can go wrong
13
Benefits of the Type System
14
The Lack of Types
15
Integral Promotion
16
Strong Type System
17
Member Functions
18
enums
19
library fails
20
the whole value pattern
21
Dont use primitive types
Description:
Explore the power of C++'s type system in this conference talk from C++Now 2019. Learn how to leverage strong typing to create safer, more expressive code. Discover the pitfalls of using primitive types for domain values and understand the benefits of implementing custom wrapper types. Examine historical perspectives on type systems, from early programming languages to modern C++. Delve into topics such as integral promotion, numeric conversions, and the challenges posed by C++'s legacy. Gain insights into implementing and teaching simple wrapper types, and explore a work-in-progress framework for mixing in operators safely. Understand how proper domain types can enhance code clarity and prevent common errors, using examples from the standard library and real-world scenarios. Apply the Whole Value Pattern to improve function interfaces and reduce bugs caused by parameter confusion.

How I Learned to Stop Worrying and Love the C++ Type System

CppNow
Add to list