is Expression
You will get to learn about the “is” Expression in this lesson.
We'll cover the following...
We'll cover the following...
The is expression is not related to the is operator that we saw in the null Value and the is Operator chapter, neither syntactically nor semantically:
a is b // is operator, which we have seen before
is (/* ... */) // is expression
The is expression is evaluated at compile time. It produces an int value, either 0 ...