You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public IHttpProxyBuilder WithEndpoint(string endpoint) => this.WithEndpoint((context, args) => new ValueTask<string>(endpoint));
A method implemented as a lambda, multiple lambdas at that, one implementation delegating to something that reads almost like an overload (WithEndpoint -> WithEndpoints). All on a single line. This kind of thing is programmer trolling.
The text was updated successfully, but these errors were encountered:
The method isn't a lambda, it is a expression-bodied method. The body itself is a lambda. I am used to working with the => operator pervasively. I think I'd split this into two lines, but that's all I'd change. Just my opinion.
This is just painful to look at.
A method implemented as a lambda, multiple lambdas at that, one implementation delegating to something that reads almost like an overload (WithEndpoint -> WithEndpoints). All on a single line. This kind of thing is programmer trolling.
The text was updated successfully, but these errors were encountered: