diff --git a/Base/Structures/Maybe.cs b/Base/Structures/Maybe.cs index 39b2eca..7fff1b0 100644 --- a/Base/Structures/Maybe.cs +++ b/Base/Structures/Maybe.cs @@ -9,12 +9,12 @@ public static class Maybe public static Maybe Empty() => new(val: default!, hasValue: false); } -public readonly struct Maybe +public readonly record struct Maybe { private readonly T _value; public readonly bool HasValue; - internal Maybe(T val = default!, bool hasValue = true) + internal Maybe(T val, bool hasValue) { _value = val; HasValue = hasValue;