this post was submitted on 17 Jun 2023
13 points (100.0% liked)

C++

1786 readers
2 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS
 

first few C++26 core language features have been voted into the C++ Working Draft at the Varna meeting:

  • P2738R1 constexpr cast from void*: towards constexpr type-erasure
  • P2741R3 User-generated static_assert messages
  • P2169R4 A nice placeholder with no name
top 7 comments
sorted by: hot top controversial new old
[–] Nihili0 4 points 1 year ago (1 children)

I hope we can get reflection and networking, maybe also pattern matching

[–] [email protected] 1 points 1 year ago (1 children)

Unless I missed it, I didn't see that reflection was included in the features for C++26. Reflection is the #1 thing I want to see in a future version of C++, but it seems like it just keeps getting pushed. What's disappointing to me is that so many of the new features are just convenient wrappers around core language features or the STL, many of which a lot of us have already implemented in our own code. Even networking, as you mentioned, can be implemented in a library (boost::asio, for example). Unless I want to write my own compiler, there's no way to implement reflection. It really should be more of a priority than it is.

[–] Nihili0 1 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago

I didn't realize it was still in the plan. The paper you linked is from September, 2022. My understanding was that it was proposed for inclusion in C++26 but that the committee never adopted it. I very much hope I'm wrong, though.

[–] Nihili0 2 points 1 year ago
[–] lasagna 1 points 1 year ago (1 children)

Impressive. 3 years ahead of its time.

[–] Nihili0 5 points 1 year ago

It's not ahead :)

it's how standardization works, C++23 just got finalized after 3 years of work, this is just the beginning for C++26