|
|
|
|
|
by SideburnsOfDoom
589 days ago
|
|
> What do you mean by "minimal syntax It's a beginner friendly and "demo mode" set of features to reduce boilerplate for small programs, such that the minimal "hello world" program is literally 1 line of code. And a working minimal ASP web app with a http endpoint is not much longer. C# and .NET was from day 1 designed for "programming in the large" so that large codebases can be sensibly organised. This however causes some overhead, such that a person coming from Python might have looked at the standard C# "hello world" example with using statements, namespace, class and method wrapping the 1-line payload, and conclude that the language is impossibly clunky and cumbersome. My opinion is the opposite; managing e.g. 50K lines of code without those ways of organising code, is going to be impossibly clunky and cumbersome. However, it is also true that demo mode is great for 1-file demos that get right to the point. |
|
Most of the verbosity comes from classes and namespaces. Go and Rust have shown it's possible to design a language for "programming in the large" without classes for everything and with less verbose namespaces.
But to be fair, I'm just getting started with C# so my comment above is likely wrong and biased. Happy to be proven wrong :)