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] Implement assignment to arrays based on index #669

Closed Luna-Klatzer closed 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 assignment to arrays, which allows the user to assign to a specific index in an array like this:

var x: Array<num> = [1, 2, 3];

...

x[0] = 4;

x; // -> [4, 2, 3];

Exact behaviour / changes you want

Luna-Klatzer commented 1 month ago

Implemented by #677.

Out of bounds checking to be done in another task.