MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/rust/comments/907a6d/thoughts_on_compiletime_function_evaluation_and/e2pee85/?context=3
r/rust • u/ralfj miri • Jul 19 '18
63 comments sorted by
View all comments
3
Could anyone link me some reading on the use cases for CTFE and why const propagation alone is insufficient for them?
2 u/eddyb Jul 20 '18 Anything where the constant is used in the typesystem, e.g. [u8; size_of::<String>()] (try it, it works today!). 1 u/Shnatsel Jul 20 '18 HELL YEAH AT LASTI can dehardcode some magic bitfield-related constants now! Yay!
2
Anything where the constant is used in the typesystem, e.g. [u8; size_of::<String>()] (try it, it works today!).
[u8; size_of::<String>()]
1 u/Shnatsel Jul 20 '18 HELL YEAH AT LASTI can dehardcode some magic bitfield-related constants now! Yay!
1
HELL YEAH AT LAST
I can dehardcode some magic bitfield-related constants now! Yay!
3
u/Shnatsel Jul 19 '18
Could anyone link me some reading on the use cases for CTFE and why const propagation alone is insufficient for them?