solus 0.7.1
Pre-release
Pre-release
This version introduces two (2) whole features to the mix, and fixes quite a bit of bugs. This is the loops update!
for
The main feature introduced is the for keyword that works like it does in C.
for val i = 0; i < 10; i += 1:
io.println(i);
// or
for (val i = 0; i < 10; i += 1):
io.println(i);break
This is literally just the break keyword from every language ever. It lets you break from loops. I'm not giving an example for this one, if you don't know how break works lmfao.