Skip to content
This repository was archived by the owner on Nov 15, 2026. It is now read-only.

Visual X# 0.5.1

Choose a tag to compare

@Leitwolf11 Leitwolf11 released this 10 Oct 20:04
69993e3

Language

  • match, if used as a value and a loop used as a value yield strings:
    String kind = match (code) { 0 -> "none", _ -> "some" };. Only the
    selected result is evaluated, as for the conditional expression. A
    callable result is still not lowered and reports VXT0051 or VXT0044.
  • A string is a subject of match:
    match (name) { "none" -> 0, "some" -> 1, _ -> 2 }. A string pattern
    accepts a subject that holds the same characters, as == does. String
    patterns never cover every string, so such a match needs an arm that
    accepts the rest, and a pattern written twice is reported as one that can
    never be selected. A number is not a pattern of a string subject, nor a
    string of a numeric one (VXT0054).

Fixed

  • value is "text" compared the two string objects in native code and not
    their characters, so it was false for every string made at run time, also
    under not, or and and and written as is == "text". The reference
    evaluator of the test suite compared characters and hid it. The pattern
    now lowers to the comparison == uses, and the evaluator refuses the
    equality primitive on two strings so that a lowering to it fails a test.

Release

  • Advanced compiler-owned Haskell packages, the CLI, Bazel module, Kotlin
    project model, and compiler project version to 0.5.1.