candoumbe / candoumbe/Candoumbe.Types

✨ `++` operator for `NonNegativeLong` type

Open
#348 0 comments 0 reactions 1 assignee Claimed by @candoumbe View on GitHub
area: numerics enhancement
Dominant language
C#
Stars
2
Forks
0
Avg merge
59m
Merged PRs (30d)
11

Description

**Is your feature request related to a problem? Please describe.**
With the upcoming release of `net10.0` and `C#14`, we could be able to implement overload for `++` operator on any type.

**Describe the solution you'd like**
The `++` operator on `NonNegativeiLong` should increment any `NonNegativeLong` value so that

```csharp
NonNegativeLong value = 0;
value = value++;

Console.WriteLine(value) // <= value should be equal to 1
```

**Describe alternatives you've considered**
N/A

**Additional context**
N/A

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.