Can core::mem::uninitialized
be a const fn, since it doesn’t do anything?
My feeling is that someone should just open a PR and we FCP it, because you can do zeroed/uninitialized with horrible hacks in constants, so why not allow the nice obvious ways, too!?
2 Likes
Woop sounds like fun
Deprecating uninitialized
is in P-FCP merge, so I’m not sure that new features for it would be accepted.
4 Likes
Assuming zeroed
does the same thing as manually initializing stuff to the value 0 (as in, put the data in .bss
), a const
zeroed
would have the same practical effect as a const
uninitialized
.
1 Like
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.