Which programming language is this?
string label = shape switch
{
Circle c => $"circle r={c.Radius}",
Square { Side: > 10 } => "big square",
_ => "unknown"
};
Answer: C#
A
Play Programming Languages ▸
switch expression with property patterns like { Side: > 10 } and a $"" interpolated string is C#.