My favorite C++20 feature--Marius Elvert

Did you know?

My favorite C++20 feature

by Marius Elvert

From the article:

As I evolved my programming style away from mutating long-lived “big” objects and structures and towards are more functional and data-oriented style based mainly on pure functions, I also find myself needing a lot more structs. These naturally occur as return types for functions with ‘richer’ output if you do not want to use std::tuple or other ad-hoc types everywhere. If you see a program as a sequence of data-transformations, I guess the structs are the immediate representations encoded in the type system...

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.