News for hackers. Stuff that matters.
Re:C# 10 new feature CallerArgumentExpression by spaetzleesser on Monday November 15, 2021 @11:10PM (#29236708)
But a lot of them seem totally arbitrary and inelegant. CallerArgumentExpression requires a lot of attributes. CallerMemberName gives you the name of the caller but not the class name. This is hard to explain. It just seems random.
Re:C# 10 new feature CallerArgumentExpression by guhidalg on Tuesday November 16, 2021 @12:12AM (#29237105)
It's not hard to explain, it's a logical and small extension of other compiler-driven attributes. Just because you don't like it doesn't mean it's a bad change to the language.