This repository was archived by the owner on Nov 15, 2026. It is now read-only.
Repository navigation
Visual X# 0.5.1
Language
match,ifused 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 reportsVXT0051orVXT0044.- 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
undernot,orandandand written asis == "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.