![](https://programming.dev/pictrs/image/15c9c78d-2924-41e6-b392-0dc0657ff24e.jpeg)
![](https://programming.dev/pictrs/image/f1e17c9a-9e9d-4ef2-9fa1-faeb53670701.webp)
Are you sure?
Your C# example:
var output = input switch
{
null => "Null",
0 => "Zero",
> 0 => "Positive",
_ => "Negative"
};
JS proposal for match:
const output = match input {
when null: "Null";
when 0: "Zero";
if input > 0: "Positive";
default: "Negative";
}
Another way of reading it is: "GitUI is unfinished, but the parts that are done are amazing"