~/talk

Extending and Simplifying C++: Thoughts on Pattern Matching using `is` and `as`

Talkat CppCon 2021 · on Tuesday, 2021-10-26· at 10:30· A) Aurora C/D, online· [rust]
slides:none on file

C++ evolution proposes general pattern matching via operator is queries and operator as casts that unify variant any optional and static type traits; the paper (P1371/P2392) argues this replaces ad‑hoc APIs and simplifies templates. A Circle compiler prototype and Godbolt demos implement structured decompositions, predicates (e.g., even constrained by concepts), and dynamic checks for any/variant/optional, uncovering a few bugs during implementation but otherwise working and showing clearer, reusable extraction and matching semantics.

AI-written summary · about

  1. 0:00Intro
  2. 2:20Is C Finished
  3. 4:30Overview of Pattern Matching
  4. 8:00Why not switch
  5. 9:00Current proposals
  6. 10:20Frequently asked questions
  7. 11:35My proposal
  8. 13:25Dynamic typing
  9. 18:00Reinterpret cast
  10. 18:49C compiler
  11. 20:35Implicit templates
  12. 22:23Integral
  13. 23:25Pattern Matching
  14. 25:20IfConstExpert
  15. 26:11IfPer
  16. 26:45Even
  17. 29:39String literal
  18. 30:22Screenshot
  19. 31:30Operator is Operator as
  20. 36:23Unified function operator syntax
  21. 37:32Variants
  22. 38:30Anycast
  23. 39:21Static typing
  24. 54:30Previous Proposal
  25. 57:58Inspect
  26. 58:35Happy Marriage
~/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.