News for hackers. Stuff that matters.
Re:Building a self-contained game in C# under 2 kilobytes by MStrehovsky on Thursday January 04, 2024 @02:40AM (#38864247)
> Fair enough; perhaps it'd be worthwhile to throw a compiler error if both reflection and trimming were attempted.

The tooling already generates warnings for any spot in the program that uses reflection _in a way that cannot be statically analyzed_. Fixing code to make it work with trimming is equivalent to fixing warnings. Here are a couple case studies: https://devblogs.microsoft.com/dotnet/creating-aot-compatibl...

There are no comments on this comment yet.