3 ms·
What I got was: - pointers to bitfields - checked bitshifts - small ints like u4 - imperative array initialization blocks - test code blocks - equi
by scotty79 1y ago
What I got was:
- pointers to bitfields
- checked bitshifts
- small ints like u4
- imperative array initialization blocks
- test code blocks
- equivalent of debugger; keyword from js
- some vague stuff about being able to do at compile time
The rest is pretty generic
- beej71 1y agoI had to dig farther on the compile time execution stuff. It's actually pretty cool-looking. Recommend digging into it. I don't know that it's a killer enough feature to draw me away from Rust's guarantees, but it is interesting.
- jandrewrogers 1y agoIt is difficult to overstate how useful compile-time execution is in practice. I can't imagine using a systems language without it now. The term "modern C++" largely denotes when compile-time execution was added to that language. I would love to see Rust get compile-time execution that is as capable as Zig or C++20.
- nicce 1y ago> I would love to see Rust get compile-time execution that is as capable as Zig or C++20. Can you give examples? Const functions are pretty capable in Rust already.
- kllrnohj 1y ago> I would love to see Rust get compile-time execution that is as capable as Zig or C++20. Isn't that just macros which are way more powerful than what Zig or C++20 offer?