Skip to content

Questioning the namespace design #114

@maettu-this

Description

@maettu-this

All code is placed into NaturalSort.Extension. However, only NaturalSortExtension are "Extension" methods. Shouldn't the code better be structured as follows?

namespace NaturalSort class NaturalSortComparer
namespace NaturalSort.Extension class NaturalSortExtension or NaturalSortExtensionMethods

Rationale of this proposal:

  • With the current design, all being placed in a single namespace, a using NaturalSort.Extension; will always make both Comparer and Extension visible.
  • WIth the proposed design, the user can selectively make Comparer and/or Extension visible, same as e.g. the System.LINQ namespace that makes extension methods for e.g. System.Collections visible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions