1 question
Best practices
0
votes
16
replies
170
views
Is it worthwhile thinking of an "alias" for the functional switch?
Consider the functional switch in C#, such as a trivial example (absolute value):
double x = ...
x = x switch {
< 0 => -x,
_ => x
};
However, if I have a function instead:
x = ...