Releases: Aristocrab/Wuzh
Releases · Aristocrab/Wuzh
Release 0.3
New features:
- Type hinting
-
String str := "string"; Any a := 1; # Same as a := 1; (a is Int 1) # b is Any func Function(Int a, b) -> Int { return a * b; } func Function2(Any a, Any b) { return a * b; }
-
- Print update
-
PrintLine(1, "2", 3.0); # prints: 1, 2, 3.0
-
- Auto-cast to string
-
String a := 1; # a is String "1" b := "Result is: " + true; # b is String "Result is: true" c := "Height is " + 175.5 + "cm"; # c is String "Height is 175.5cm"
-
- Array concatenation
-
arr := [1, 2] + [3, 4]; # arr is [1, 2, 3, 4]
-
- Integer digit separation
-
num1 := 1_000_000; num2 := 1000000; PrintLine(num1 == num2); # true
-
- Standard library extended
- Version in command line
-
> wuzh -v Wuzh 0.3
-
Release 0.2
New features:
- File imports:
import "filename.wuzh";
- Ranges:
[0..10]
# Range from 1 to 10
for (i in [1..10]) {
PrintLine(i);
}
- Minus with numbers:
-1;
- Dictionaries:
dict := {
"name": "Vlad",
"age": 19
};
d := dict["name"]; # d = "Vlad"
dict["name"] = "Bob";
dict["height"] = "180cm";
Release 0.1
Features:
- Basic Types
- Declaring variables and constants
- Assignment
- Indexing
- if
- while
- for
- Function declarations
- Function calls
- Comparison operators
- Numeric operations