Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It is complicated. Templates do allow some form of structural typing and the new-in-C++17 structured bindings do allow for decomposing and inspecting types (although this being C++ it is kind of awkward). Structured bindings are expected to evolve into full pattern matching in the future.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: