News for hackers. Stuff that matters.
Re:Twenty years of C# with Anders Hejlsberg [audio] by yread on Thursday February 10, 2022 @06:24PM (#30294275)
There is PostSharp for that https://www.postsharp.net/
Re:Twenty years of C# with Anders Hejlsberg [audio] by VincentEvans on Thursday February 10, 2022 @06:47PM (#30294568)
I mention postsharp in my other reply, but I don’t see it as a compelling substitute - because it’s not a native feature of the language or framework, but also because its compile-time byte-code rewriting nature makes it hard to work with and debug. It fills a niche for sure, but I’d rather it be filled natively by the language itself.
Re:Twenty years of C# with Anders Hejlsberg [audio] by Izikiel43 on Friday February 11, 2022 @04:22AM (#30299183)
Source generators might help with this.
Re:Twenty years of C# with Anders Hejlsberg [audio] by VincentEvans on Saturday February 12, 2022 @08:49AM (#30312792)
Unfortunately the original doc introducing the feature makes an explicit point to say that the feature does not enable AOP.

First question in the FAQ section:

https://devblogs.microsoft.com/dotnet/introducing-c-source-g...

Re:Twenty years of C# with Anders Hejlsberg [audio] by Izikiel43 on Friday February 18, 2022 @03:13AM (#30383299)
That’s a shame.