Aaronontheweb / EvilRoslynAnalyzers

Has your boss gone insane and banned LINQ at work? Why stop there - use this Roslyn Analyzer to ban extension methods altogether!
https://www.reddit.com/r/dotnet/comments/1c4hz1z/linq_forbidden/
Apache License 2.0
31 stars 2 forks source link

Feature idea: ban lambdas #24

Open alexeyzimarev opened 4 months ago

alexeyzimarev commented 4 months ago

As you never know when lambdas will be executed, you can end up the lambda being called on disposed resources. They also add allocations of delegates and closures.

Nobody needs high-order functions anyway. It's easy to replace them with ifs and switches.