# C++ with pattern matching (and as a dynamic alnguage)

**URL:** <https://discourse.julialang.org/t/c-with-pattern-matching-and-as-a-dynamic-alnguage/72820>\
**Category:** Offtopic\
**Created:** [December 9, 2021, 11:36am UTC](https://discourse.julialang.org/t/c-with-pattern-matching-and-as-a-dynamic-alnguage/72820 "2021-12-09T11:36:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [December 9, 2021, 11:36am UTC](https://discourse.julialang.org/t/c-with-pattern-matching-and-as-a-dynamic-alnguage/72820/1 "2021-12-09T11:36:30Z")

</div>

With Python recently introducing pattern matching and with it on the radar for C++, maybe Julia should also adopt it (not just through a package)?

Anyway, for people to see how it will be done in C++:

[![](https://global.discourse-cdn.com/julialang/original/3X/f/7/f72dce833766fee133ca978c82f34c5d5f5e8bd9.jpeg "Extending and Simplifying C++: Thoughts on Pattern Matching using `is` and `as` - Herb Sutter") ](https://www.youtube.com/watch?v=raB_289NxBk&t=532)

C++ (and C) is of course a static language, but I found interesting it’s also dynamic.

> the language has one little bit of support for dynamic typing

[otherwise all the dynamic stuff is in the standard library, as opposed to the language.]

[![](https://global.discourse-cdn.com/julialang/original/3X/f/7/f72dce833766fee133ca978c82f34c5d5f5e8bd9.jpeg "Extending and Simplifying C++: Thoughts on Pattern Matching using `is` and `as` - Herb Sutter") ](https://www.youtube.com/watch?v=raB_289NxBk&t=783)
