News for hackers. Stuff that matters.
Re:Writing a Simple Windows Driver in Rust by queuebert on Saturday February 08, 2025 @06:22PM (#42987091)
I see your point, but it makes it hard for Rust programmers to grok the code, as all caps denotes a constant. Even enums are camel case.
Re:Writing a Simple Windows Driver in Rust by haileys on Saturday February 08, 2025 @07:02PM (#42987279)
This is pretty normal for Rust code that FFIs to external libraries.

There's a lot more complexity in writing FFI code - you have to think very carefully about everything you do. Case convention is a triviality here.