Explore >> Select a destination


You are here

gpfault.net
| | brevzin.github.io
17.2 parsecs away

Travel
| | C++17 gave us std::optional which is, in the words of a friend of mine, one of those really simple, ultra complex types - in the sense that it's very easy to understand and use properly, even for relatively inexperienced programmers... but extremely difficult to implement correctly, even for experts (another such is std::pair). Today, it's well over a thousand lines of code, most of which is critical to support even its most basic functionality. optional is the simplest sum type, and it appears in lots of different languages (and even has special syntax in Swift) under various related names - Maybe, Option, etc. - but in the languages I'm even nominally familiar with, it's about as simple to implement as it is to use.
| | blog.molecular-matters.com
9.5 parsecs away

Travel
| | I recently had the need to retrieve the type of a template argument as a human-readable string for debugging purposes, but without using RTTI - so typeid and type_info were out of the question. After a bit of trial and error, I came up with the following solution. I thought it was a nice little...
| | dave.cheney.net
11.8 parsecs away

Travel
| |
| | www.cimgf.com
97.4 parsecs away

Travel
|