DigitecGalaxus / DigitecGalaxus/Galaxus.Functional
Consider an Option.Some constructor relying on type inference.
- Dominant language
- C#
- Stars
- 41
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
The type constructor of None currently is very verbose. You always have to give the type information of the inner type. This is not necessary in the some case, the type can be inferred from the value.
Instead of
```cs
var option = Option.Some(value);
```
It should look like this:
```cs
var option = Option.Some(value);
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Locate the Option type and its existing generic Some constructor, then inspect nearby tests or usage examples. The work is done when Option.Some(value) compiles through type inference and existing Option behavior remains covered by the relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100