When to use Bitwise Operators during webdevelopment?

后端 未结 10 1309
Happy的楠姐
Happy的楠姐 2020-12-12 12:01

Although I grasp the concept of Bitwise Operators, I can\'t say that I have come across many use cases during the webdevelopment process at which I had to resort to using Bi

10条回答
  •  Happy的楠姐
    2020-12-12 12:14

    On the off-topic side of things, in high-level languages, especially in parsed languages (such as PHP), bitwise operations are tons slower[citation needed] than the normal arithmetic. So, while Jon's permission checking might be ok from a performance standpoint, it's not very 'native' in the web domain.

提交回复
热议问题