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
We can currently do if (x is T) if T is some primitive-ish type like i64 or str or even a user-defined struct. Unfortunately we cannot match x with something like [T], although I suppose that requires proper generics of some sort.
The text was updated successfully, but these errors were encountered:
We can currently do
if (x is T)
ifT
is some primitive-ish type likei64
orstr
or even a user-defined struct. Unfortunately we cannot matchx
with something like[T]
, although I suppose that requires proper generics of some sort.The text was updated successfully, but these errors were encountered: