Kipper-Lang / Kipper

The Kipper programming language for Browsers and Node.js 🦊✨ Made at HTL Leonding & JKU Linz
https://kipper-lang.org
GNU General Public License v3.0
26 stars 4 forks source link

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

Open Luna-Klatzer opened 1 month ago

Luna-Klatzer commented 1 month ago

Is there an existing proposal for this?

This feature does not exist in 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