Type safe C++ – LOL! :-) - Bjorn Fahller [ACCU 2018]

Описание к видео Type safe C++ – LOL! :-) - Bjorn Fahller [ACCU 2018]

Presentation PDF Available here: https://speakerdeck.com/rollbear/type...

So called "strong types", genuinely type safe alternatives to "typedef:s" are often seen as a way to prevent bugs, but they can also be used to improve clarity in your code, and even increase performance. It is underappreciated how strong the type safety guarantees in C++ are, because it takes knowledge and a bit of discipline to make use of it.

In this session, I give motivating examples for why strong types are good, and present some of the techniques for creating them. The simplest techniques requires no library support, but I will also show some more sophisticated solutions from open source libraries available on github. We will go through what happens with both production code and test code when you use them, and also discuss the pros and cons of the different approaches.

Комментарии

Информация по комментариям в разработке