logoalt Hacker News

anon291today at 7:28 AM1 replyview on HN

3 lines of code that may need to change is much more complex than a macro that signals intent.


Replies

ozgrakkurttoday at 8:44 AM

https://docs.rs/io-uring/latest/io_uring/opcode/index.html

You can click the source code link and read the code here. Macros aren’t needed at all if every single operation isn’t a different type.