Kipper
Kipper copied to clipboard
[Feature] `instanceof` operator for checking whether an object is an instance of a class
Is there an existing proposal for this?
- [X] I have searched the existing issues
This feature does not exist in the latest version
- [X] I am using the latest version
Proposal
Implement instanceof
operator, which adds support for type checks against classes. This is simply the same behaviour as in JavaScript and allows the user to verify the type of an object.
Exact behaviour / changes you want
- [ ] Implement
instanceof
keyword and operator. - [ ] Add target code generation for
instanceof
type checks.