Kipper icon indicating copy to clipboard operation
Kipper copied to clipboard

[Feature] `instanceof` operator for checking whether an object is an instance of a class

Open Luna-Klatzer opened this issue 7 months ago • 0 comments

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.

Luna-Klatzer avatar Jul 25 '24 08:07 Luna-Klatzer