The use of the triple exclamation mark

前端 未结 5 827
眼角桃花
眼角桃花 2020-12-01 05:52

Looking through the source code of one of our projects, I\'ve found some amount of places where we\'re using three exclamation marks in conditional statements, like so:

5条回答
  •  离开以前
    2020-12-01 06:28

    It is the same as one exclamation mark. The key idea behind it is to improve visibility for the programmer. Compiler will optimize it as single '!' anyway.

提交回复
热议问题