Fred Silberberg
Fred Silberberg
> ```cs > Console.WriteLine("Hello world!"); > // produces > > [CompilerGenerated] > internal class Program > { > private static void $(string[] args) > { > Console.WriteLine("Hello world!"); > }...
> Improved version of my code sample: > ```cs > interface IFastEnumerator > { > bool TryMoveNext(out T item); > } > interface IFastEnumerable > { > Type GetFastEnumeratorType(); //...
> How about: > ```cs > interface IFastEnumerator > { > bool TryMoveNext(out T item); > } > interface IFastEnumerable > { > IFastEnumerator GetFastEnumerator(); // this is for regular...
When we didn't do that in C# 8, we accepted that it would likely never be done. https://github.com/dotnet/csharplang/issues/881
Probably worth explicitly calling out that this would only work for u8 strings that are being converted to a handler type, as there aren't currently plans to create a default...
> As an implementation detail, I imagine if we did it could "just work", albeit less efficiently than if you hadn't used u8. It wouldn't just work since the result...
> For example, a source generator might provide a method to print the expression passed into it as an argument (see it on sharplab) A source generator might do this,...
That certainly is _more_ interesting, but I don't believe it's very interesting. Those delegates don't depend on state, so you could just use reference equality in the cache (which would...
> and an implicit conversion exists from S₂ to S₁ Definitely a bit concerned about this one. Will need to think through this and make sure it doesn't introduce any...
> Doesn't it make sense to actually allow lambda assignment to function pointers? (#3476) Indeed, @YairHalberstadt, that's my reaction as well. > However one advantage of source generators is to...