Skip to main content

Welcome to notes from /dev/null

hic sunt litterae et programmata…

Recent notes

Recursive lambdas in C++

·1566 words·8 mins

Lambdas and recursion are foundational tools of functional programming. They are both available in C++, but until recently, they couldn’t be used together. This post discusses how to work around this limitation and how to make use of recursion with lambdas in C++.

More ...

Annotations in C++26 static reflection

·1317 words·7 mins

C++26 added static reflection to the already big bag of compile-time features. One of the most powerful tools that made it into the language is the ability to use custom annotations and to inspect them at compile time. Here, we will see how to define and use annotations, and how to pass various arguments to them that can be extracted through reflection.

More ...