~/talk

Making optional optional

Talkat CppCon 2017 · 2017-09-24..09-29· [rust]
links:none on file
slides:none on file

Claims that construction choice matters: forwarding make_optional forces a compile time decision so it behaves like make_mandatory, a homemade make_really_optional hides branching with a factory lambda, and a custom nought type converts to any std::optional for tidy ternary expressions. Discovering std::nullopt does the same job shows the canonical tool already exists, so documentation and code that default‑construct then assign should be replaced with direct construction using nullopt or value so call sites stay local and clear.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.