~/talk

F.21

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

Guideline F.21 claims: to return multiple “out” values, return a struct rather than a tuple. Evidence: tuples permit accidental mixing of unrelated returned values and enable nonsensical comparisons, weakening the static type system. Tools shown: pair/tuple/tie versus C++17 structured bindings, inline anonymous structs with auto for locals, and the standard’s from_chars example that returns a struct (plus an out parameter). Tradeoff: structs are safer but more verbose unless language ergonomics improve.

AI-written summary · about

  1. 0:00Start
  2. 0:13F.21: To return multiple "out" values, prefer returning a tuple or struct.
  3. 1:48Unwarranted tuples weaken the type system
  4. 3:01What about structs?
~/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.