TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

C++26: more constexpr in the core language

96 pointsby jandeboevrie25 days ago

7 comments

mcdeltat25 days ago
Anyone else getting concerned about the rate of development of the C++ Standard vs compiler implementation? We don&#x27;t even have feature complete C++20 on the major compilers yet. C++23 is even less implemented. How will the committee handle this? Will they reduce feature additions at some point in the future?<p><a href="https:&#x2F;&#x2F;en.cppreference.com&#x2F;w&#x2F;cpp&#x2F;compiler_support" rel="nofollow">https:&#x2F;&#x2F;en.cppreference.com&#x2F;w&#x2F;cpp&#x2F;compiler_support</a>
评论 #43779937 未加载
评论 #43779906 未加载
评论 #43779021 未加载
评论 #43778275 未加载
评论 #43780152 未加载
评论 #43781343 未加载
评论 #43779784 未加载
评论 #43779310 未加载
veilrap25 days ago
I always like these new comile time features getting into the C++ spec.<p>I&#x27;m actually looking forward to the related reflection features that I think are currently in scope for C++26. I&#x27;ve run into a number of places where the combination of reflection and constexpr could be really valuable... the current workarounds often involving macros, runtime tricks, or both.
评论 #43777193 未加载
Quitschquat25 days ago
It would be cool to have the entire language and runtime available at compile-time like in Lisp
评论 #43777008 未加载
评论 #43776360 未加载
评论 #43776617 未加载
评论 #43777845 未加载
评论 #43776861 未加载
评论 #43776995 未加载
11223324 days ago
Recent C++ changes seem like polishing your firewood before burning it. Yes, they make perfect sense, but often they are a fix to a problem that committee introduced by cutting down previous proposals (e.g. forcing lambdas to be single return statement, then relaxing it).<p>Half of new features feel like &quot;how to make STL implementation less embarassing&quot;.<p>Meanwhile there still is no language support for e.g. debugging constexpr, or printing internal private state of objects in 3rd party code.
评论 #43781383 未加载
评论 #43780479 未加载
评论 #43780704 未加载
评论 #43779571 未加载
评论 #43779886 未加载
psyclobe25 days ago
That’s super cool; c++ is always the sharpest tool in the drawer (and by virtue the funnest!)..<p>It’s too bad you still can’t cast a char to a uint8_t though in a constexpr expression.
评论 #43776597 未加载
评论 #43776242 未加载
gitroom24 days ago
every release adding more constexpr stuff honestly helps me - been burned by old template hacks enough lol. you think we ever get to a real point where all this new power just makes stuff easier, or is it always tradeoffs?
worik25 days ago
Are they flogging a dead horse?<p>C++ is, should be, like COBOL. A very important language because of the installed base. But why the continual enhancements? Surely there are better uses of all those resources?
评论 #43778366 未加载
评论 #43779173 未加载
评论 #43777221 未加载
评论 #43777043 未加载
评论 #43777233 未加载
评论 #43777571 未加载
评论 #43779132 未加载
评论 #43778564 未加载