4 ms·
Are there really places where C# is less verbose by any significant margin? The only thing I can think of is that a well-written LINQ library lets you abstract
by sirclueless 13y ago
Are there really places where C# is less verbose by any significant margin? The only thing I can think of is that a well-written LINQ library lets you abstract away a tremendous amount of heavy lifting into a clean and declarative query, but other than that pretty much everything requires more keywords, punctuation and declaration in C#.
Don't get me wrong, C# is relatively explicit and regular, which does wonders for its readability especially in large projects with many collaborators. But brevity is not one of its strong suits, nor should it be.
- skrebbel 13y agoIndeed, lamdas and LINQ. The moment you're using functional primitives that don't fit in Python's list comprehensions well, C# becomes a lot less verbose, and certainly less obtuse. I think that's the only place, though.