Closed alexnoddings closed 3 months ago
ref parameters block this use case:
ref
public Task<Option<int>> MaybeGetValue() => Option.Some(42).ToTask();
Results in an error since Option.Some(42) is not an assignable variable or field.
Option.Some(42)
Using an in parameter still passes by ref, so we don't lose perf.
in
ref
parameters block this use case:Results in an error since
Option.Some(42)
is not an assignable variable or field.Using an
in
parameter still passes by ref, so we don't lose perf.