Skip to content

Consider extension methods #6

Description

@ndsvw
  • How much effort is it?
  • is it worth it?
  • does the project name "Fluent-Random-Picker" still make sense?
    • Can extension methods for all this be built without fluent syntax?
    • Does the extension method syntax still look like the code that already exists?

Extension methods could exist for IEnumerable:

new List<int>{ 1, 2, 3}.PickOne(); // but where can you set the RNG?
new List<int>{ 1, 2, 3}.PickOne().WithSettings(rng).Evaluate(); // but then, the PickOne() logic is different to the PickOne() from the normal syntax

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions