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] Add runtime type generation for builtin types #659

Closed lorenzholzbauer closed 1 month ago

lorenzholzbauer commented 3 months ago

Is there an existing proposal for this?

This feature does not exist in the latest version

Proposal

class Type {
    constructor(name, fields, methods, baseType = null) {
        this.name = name;
        this.fields = fields;
        this.methods = methods;
        this.baseType = baseType;
    }
}

Exact behaviour / changes you want

Luna-Klatzer commented 1 month ago

Implemented as part of #688.