This seems a poor example as it is longhand for:
var (sum, count) = SumAndCount(numbers);
Console.WriteLine($"Sum of [{string.Join(" ", numbers)}] is {sum}");
and introduces an if suggesting that the match might fail.
Originally posted by @Nigel-Ecma in #873 (comment)
This seems a poor example as it is longhand for:
and introduces an
ifsuggesting that the match might fail.Originally posted by @Nigel-Ecma in #873 (comment)