Open ThreadSanitizer opened 9 months ago
In starlark spec starlark, the way to do it is:
type(x) == type(1)
in starlark-rust we have isinstance
:
isinstance(x, int)
which I thing might be helpful addition to starlark spec, some basic form, i.e. mandate isinstance
should work for builtin constructors like int
or list
.
For example:
How to do this in Starlark?