Re:What's so hard about constexpr allocation?
by mohinder on Friday July 26, 2024 @12:45AM
(#41075816)
It seems like the C++ language devs are always trying to rein in horses that have already left the barn.
[ Parent
| on HN ]
Re:What's so hard about constexpr allocation?
by cryptonector on Friday July 26, 2024 @01:25AM
(#41075992)
Yes. Here though the ostensible topic is constexpr allocation, the real topic is adding deep const.
Re:What's so hard about constexpr allocation?
by phaedrus on Friday July 26, 2024 @12:18PM
(#41079866)
It seems like C++ would be simpler if were either just all immutable (like Haskell) or embraced using the full, mutable language for metaprogramming (Jonathan Blow's Jai). Of course that's a horse that left the barn before most of the current barn was even built.
Re:What's so hard about constexpr allocation?
by cryptonector on Friday July 26, 2024 @01:28PM
(#41080468)
I suppose one could opt-into default-immutable and make it Rust-like. That'd be nice.