Skip to content

Do we want to remove optional parameters? #64

@HerrLoesch

Description

@HerrLoesch

I saw that we are using optional parameters in our public API. For example in Lipsum:

public Lipsum(LipsumFlavor flavor, int paragraphs = 3, int minSentences = 3, int maxSentences = 8, 160 int minWords = 10, int maxWords = 50, int? seed = null)

Optional parameters are compiled into the Client library. This might cause Problems if we change them, which why they shouldn't be used in public APIs. On the other hand it's annoying to replace them with overloads.

My question is now: Do we want to replace all optional parameters with overloads to stay save or do we want to keep them as they are, even with possible side effects?

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions