// Intentionally written in decimal rather than hex const PROBLEMATIC_CONSTS: &[u32] = &[ 184594741, 2880289470, 2881141438, 2965027518, 2976579765, 3203381950, 3405691582, 3405697037, 3735927486, 3735932941, 4027431614, 4276992702, ]; >>> [hex(x) for x in xs] ['0xb00b135', '0xabadbabe', '0xabbababe', '0xb0bababe', '0xb16b00b5', '0xbeefbabe', '0xcafebabe', '0xcafed00d', '0xdeadbabe', '0xdeadd00d', '0xf00dbabe', '0xfeedbabe'] Какие-то странные люди объявляют константы, используемые в программировании дольше чем они живут на планете, «проблемными», потому что… а почему, собственно? https://www.linux.org.ru/forum/talks/17036169 delbonis: Wait why is this "problematic"? noonien: What about 0xDeadBeef? This is also problematic, because, as a vegan, it's triggering with images of dead animals. camsteffen: Have some grace for the maintainers who will get beef (pun intended) no matter what they do. They have to draw a line somewhere for this stuff. It's just a few hex codes. It's okay. owwk: "It's just a few hex codes" is exactly why it's not okay. Every time it's "just a few this" this or "just a little that". 500x of of "just remove this little thing" later and suddenly half of computer science terms are considered "problematic" and you've let a small group of misguided authoritarians create a political climate where you're not allowed to write certain integers in your code anymore. Nobody was offended by this. All of this BS is pushed by spineless white men being offended on behalf of other people. Creating imaginary offense in their fragile minds despite none actually existing. "Это всего лишь несколько шестнадцатеричных кодов" - именно поэтому это не нормально. Каждый раз это "просто несколько вот этого" или "просто немного того". 500 раз "просто уберите эту мелочь", и вдруг половина терминов компьютерной науки считается "проблематичной", и вы позволили небольшой группе заблуждающихся авторитаристов создать политический климат, при котором вам больше не разрешается писать определенные целые числа в коде. Никто не был оскорблен этим. Все это нагнетается бесхребетными белыми мужчинами, которые обижаются от имени других людей. Создавая воображаемые обиды в своих хрупких умах, хотя на самом деле их не существует. https://github.com/rust-lang/rust/pull/92469