Stephen Toub
Stephen Toub
@sharwell, strange, I could have sworn I was responding to a comment you'd written... it's almost as if it was there and then someone deleted it ;) Oh well.
@MgSam, thanks, yes, I have seen it.
> The generated Foo includes its documentation. That documentation flows along the same way as nodemal code. Flows from where? Let's say this is a regex generator. I want to...
> I would not write it like that. i would just have: Yeah, to me personally that's much worse, for all the reasons I outlined. And, to the documentation point,...
> The source generator can totally make an informal mechanism Why would I want that when we already have a long-standing, compiler-supported mechanism for this? I don't want to invent...
> But you're asking us to invent a mechanism. I'm asking the language to add a small feature that makes the source generator way more usable and user-friendly, in my...
That seems reasonable.
> Could even be a requirement to add the static modifier to the interface declaration? I believe that's the option (2) I outlined 😄
> unless regular types can also implement so-called static interfaces Yes, they'd be able to. You'd just only be able to implement an interface on a static class if the...
> Considering that static classes cannot be used as generic type arguments today, how is this feature useful? Without the ability to do that, you cannot actually use an interface...