Skip to content

Release 0.3

Latest
Compare
Choose a tag to compare
@Aristocrab Aristocrab released this 10 Oct 08:09
· 8 commits to main since this release

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