Replies: 8 comments
-
I believe the links are the wrong way round |
Beta Was this translation helpful? Give feedback.
-
Once again, I'd like to point the LDM's attention to #2328 which can simply be another building block. |
Beta Was this translation helpful? Give feedback.
-
Fixed! Good to know. Personally I'm not sure I buy a separate feature here. I think the concept is valid for init-only properties, but properties with public setters can have any value set at any time, so I'm not convinced it's useful. |
Beta Was this translation helpful? Give feedback.
-
I still don't see what problem you guys are trying to solve with "simple programs". As you stated clearly in the design notes- it's impossible to reconcile with CSX. So is introducing a 3rd variant of C# really worth all the added complexity for the tiny marginal benefit? What is wrong with CSX exactly? Are "learners" really an important target audience? C# is 20 years old and has consistently been one of the top used languages. Obviously, a lot of people have learned how to use it without requiring top-level statements. |
Beta Was this translation helpful? Give feedback.
-
Jupyter notebook scripting and other top-level programs are starting to become more popular. We want to make the transition between a notebook and a full C# program as seamless as possible, namely copy-paste with no additional work. We think that's well worth the costs. Personally, I'm also quite excited by the potential for a real front-and-center single file solution in |
Beta Was this translation helpful? Give feedback.
-
I was thinking this could simplify Would it be possible to define |
Beta Was this translation helpful? Give feedback.
-
You could probably use |
Beta Was this translation helpful? Give feedback.
-
That would require some portion of that "simple program" be dedicated to parsing that single string of args. VB5/6 had similar limitations and it was a common/constant source of bugs, particularly given that (at the time) the string could be formatted differently on different OSes (9x vs. NT). If C# isn't going to offer the args I would say that the BCL should add a method that would make it easy to obtain the args parsed correctly. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
March 9, 2020
C# Language Design Notes for March 9, 2020
Simple programs
Records
Feb 26, 2020
C# Language Design Notes for Feb. 26, 2020
Design Review
Beta Was this translation helpful? Give feedback.
All reactions