Skip to main content

Command Palette

Search for a command to run...

A Teaser to MufiZ v0.10.0

Updated
2 min read
A Teaser to MufiZ v0.10.0

The next release of MufiZ, Echo release is planned to be released hopefully by October or November 2025, and with it comes many new features to the language, after lots of releases of mainly focusing on fixing up the language (well this brings more stuff to better optimize).

Const Support

In this release we provide support to immutable variables in both global and local scopes through the const keyword, you can assign a variable to immutable instead of the mutable var keyword.

Pairs Support

We introduce a new object called Pairs which act as a key-value pair which can either be directly created using the syntax key => value or can be collected from a Hash-Table using the pairs() function which can be iterated upon, further work will be looked at for further integration with the hash-table type.

Switch Support

We are adding support for switch statements which are similar to a mix between C but instead of : we use => as shown below:

var a = 3;
print("Switch value: " + a);

switch(a){
    case 1 => { print("Entered case 1"); assert(a, 1); break;},
    case 2 => { print("Entered case 2"); assert(a, 2); break;},
    case 3 => { print("Entered case 3"); assert(a, 3); break;}
}
print("End of switch");

Range Support

We are adding exclusive (start..end) and inclusive (start..=end) ranges support, further work is being done to ensure they work nicely with foreach loops and switch statements, and may not be fully stabilised until v0.11.0.

Switch to Zig v0.15.0 Toolchain

The new Zig release has come out and a lot of refactoring is being done to replace old code with the new Io type and it involves the networking functions to be rewritten as well. This is an exciting release, and we are happy to quickly adopt it to our language.

7 views