Stream: t-libs

Topic: Deprecating compare_and_swap


faern (Jan 19 2020 at 18:00, on Zulip):

I'm also fine with deprecating in the next edition. Just like @bstrie I only care about that it will eventually be done. However, I think we should update the docs for the old ways of reaching the consts immediately upon stabilizing them. Something like a soft deprecation. So people can immediately see which ones they should pick if they are writing new code, without giving warnings to existing code.

faern (Jan 19 2020 at 18:02, on Zulip):

@Amanieu @Steven Fackler Omg, compare_and_swap is supposed to be deprecated? And the docs don't even mention that compare_exchange + compare_exchange_weak are supposed to replace it. You have no idea how much time I have spent trying to figure out what the difference is and which one should be used in what case. Let's deprecate it immediately or at least update the docs :/

Amanieu (Jan 19 2020 at 18:03, on Zulip):

https://github.com/rust-lang/rust/issues/31767#issuecomment-215903038

Amanieu (Jan 19 2020 at 18:03, on Zulip):

I'm going to split this off to a different topic

Last update: Feb 25 2020 at 02:50UTC