A developer named Esben encountered a frustrating linter loop in C#: the linter complained about not using a primary constructor, so he added a pragma to suppress the warning. The linter then complained that the suppression was unnecessary. Attempting to suppress both warnings simultaneously failed because C# pragmas apply to the next line, ultimately requiring three lines of boilerplate just to silence a single stylistic suggestion.

2m read timeFrom thedailywtf.com
Post cover image
1 Comment

Sort: