3 ms·
C# has grown quite large over that period however there are large areas of the language that you can safely ignore. Your code might not be as elegant but you wo
by tonyedgecombe 5y ago
C# has grown quite large over that period however there are large areas of the language that you can safely ignore. Your code might not be as elegant but you won't get tripped up like you would if you don't know C++ well enough.
- pjmlp 5y agoIn which C# version have the foreach variables changed their semantics? Just an example of a possible C# pub quizz question, I have other possible ones.
- tonyedgecombe 5y agoI think it was 4.0 from memory. I'm not arguing that you don't need to think about your code. The early behaviour was what I would have expected, the change was sensible but it's a long way from what you have to deal with in C++. My experience with C++ was a lot of study and practice before I started my first project whereas with C# I was able to dive right in to a substantial piece of work and learn the language along the way.
- pjmlp 5y agoAnother example on how learning the language along the way gets to unexpected results, memory leaks in event handlers, or how HTTPClient doesn't really handle connection pool the way it should in the .NET Framework variant.