You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, this is Ok, but at least allow us to use Is. It is already used in some cases like Case Is < 10, but the next code is not accepted, and I think it should be:
This problem is similar to #541. I'd be happy to see all this flavours of type matching be covered by a general pattern matching syntax like #367 so far.
There is a difference. There I was comparing types, but here I am comparing references. In my use case, I could use the types instead of references because I am responding to an event that travels a specific route. This will not always be the case.
This Code gives me a runtime exception, as it is assumed to use
=
in comparing the objects:So, this is Ok, but at least allow us to use
Is
. It is already used in some cases likeCase Is < 10
, but the next code is not accepted, and I think it should be:The only valid way is:
Which is verbose and involving calling three methods!
The text was updated successfully, but these errors were encountered: