3 ms·
It's unfortunate that it had to happen by accident, and now new features are reluctantly being pushed through piecemeal. Imagine what it could have been if it
by kubb 2y ago
It's unfortunate that it had to happen by accident, and now new features are reluctantly being pushed through piecemeal.
Imagine what it could have been if it was designed for programmability from the start.
- klipt 2y ago> Imagine what it could have been if it was designed for programmability from the start. Circle C++ compiler was designed for that: https://www.circle-lang.org/quickref.html https://www.circle-lang.org/quickref.html
- nxobject 2y agoI do think as well that some deeper scrutiny of semantics with the tools of PL research might have helped ahead of time - some of the most glaring warts like the perfect forwarding problem, or the need for reference collapsing, would have been avoided if the standards committee had taken a more rigorous approach to understanding semantics and their implications. I hope Zig’s comptime will get that level of scrutiny.
- kazinator 2y agoIt would have been a huge, sudden increment in complexity from absolute zero, causing it to be forever written off and ignored as an incomprehensible curiosity looking for a practical application. You have to suck people in with, "hey, you can write these two similar C-like functions under one definition, the correct one of which is automatically deduced and used".