Skip to content

[Proposal] (Minor) Method groups for constructors #140

@ashmind

Description

@ashmind

Problem

This is a very small thing, but a small inconsistency still might be worth resolving.

Consider the following:

var ys = xs.Select(New.Y);

Now I want to create Y using constructor:

var ys = xs.Select(x => new Y(x));

Inconsistent, not as convenient (especially if that's not just a single parameter).

Proposed solution

Generate method groups from constructors.
I am not sure what the syntax would be, but here is an option:

var ys = xs.Select(new Y);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions