[ my public key: https://keybase.io/poizan42; my proof: https://keybase.io/poizan42/sigs/FkOsaGSpCF1HJswaogubPUxO68ewPLKOR7JFPRsF2zA ]
Well yes, hopefully you know what you are doing when you reference a source generator. This could ofc. also be done with custom msbuild task that modfies the code sent to the compiler or the assembly after compilation (like Fody), Source Generators just makes the process more streamlined and integrates with things like IntelliSense.
Yes if all the code was generated. The problem is when you want to modify the behavior of user-supplied code - Roslyn Source Generators are additive so you cannot make modifications directly to user-supplied code.
You can read about how they work here: https://github.com/dotnet/roslyn/blob/main/docs/features/inc...
Basically they get the files (and ambient metadata) that are part of the compilation, filter to the parts it depends on, transforms to a in-mem representation of the data needed for the code generation, and then finally adds new files to the compilation. Since they can only add new files they cannot e.g. add code to be executed before or after user code is executed like with AOP. Interceptors are a solution to that problem.
You said
> A related example is the word 'none' (= 'not one'). Technically it should govern a singular verb
And I'm questioning why you think "none" should technically govern a singular verb when "none" is normally a non-singular subject.
I'm sure both are being used, and at the end of the day what is correct is determined by how a significant amount of people are using the language. But I just don't understand why you think a singular verb would be more "technically correct"
Did you mean that because you could replace none with "not one" then it should be singular? But that only works because the 'not' applies to the whole sentence, so the remainder is about 'one', i.e. "not (one of the team was prepared)". But that doesn't work for the word none because you can't read it as the 'not' applying to a singular part-sentence.
This project is an enhanced reader for Ycombinator Hacker News: https://news.ycombinator.com/.
The interface also allow to comment, post and interact with the original HN platform. Credentials are stored locally and are never sent to any server, you can check the source code here: https://github.com/GabrielePicco/hacker-news-rich.
For suggestions and features requests you can write me here: gabrielepicco.github.io