Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

Why not good ol' De Morgan's laws?

return !(raw[2]&(QR|AA|TC) == 0 && raw[3]&(Z|RCODE) == 0 )



The code probably goes on to to do additional checks.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: