Neal Gafter
Neal Gafter
> To avoid that, as a simpler rule, we could say if an identifier is already found but the conversion fails, we treat as target-typed. In other words, it's defined...
> I think the situation is almost the same as `short x = b ? 1 : 2;` for target-typed `?:` expressions. No, this is give a meaning to code...
> That would be a breaking change. In an expression such as `M(Name, e2, e3)` If `Name` bound to something before, then it would not be target-typed. If it did...
@mgravell This is something that we had discussed. I apologize that the discussion did not take place here. The expression form (as opposed to the type form) is less susceptible...
In my opinion a problem of this sort arising from this feature would be rare and if it happens would probably bring in a value of the wrong type. You...
@mpawelski Block expressions ala Rust are currently under consideration under #377, though with parentheses instead of curly braces.
> However an unexplored question is would including in member lookup the (virtual) extension members fundamentally change the result so that a different method would now be chosen? Yes, it...
@nystrom Is this just an idea, or do you have a use case where this would be helpful to you?
Please use `$(Fruit.APPLE)`. The escape syntax is used to refer to general expressions or values defined elsewhere. This was an intentional change in 2.0. I will make sure we document...
Is this really so much better than ``` cs using static System.Math; var result = Pow(a, b); ```