Skip to content

Poor example? #1667

Description

@Nigel-Ecma

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions