Skip to content

Consider returning an empty collection instead of an exception for MaxByAsync/MinByAsync #2166

Open
@MatthewSteeples

Description

Feature request

Behavior change on an existing operator.

Which subcomponent library: Async.Ix

Which next library version: major (runtime behaviour breaking change)

Please describe the feature.

The versions of this method in the framework only throw exceptions for ValueTypes, instead preferring to return null for reference types. In the spirit of this, it may be worth returning the empty List from these methods instead of throwing an error. I'll probably put together a branch with this on later this week for consideration and our own internal use.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions