Switch statement fallthrough is one of my personal major reasons for loving switch vs. if/else if constructs. An example is in order here:
static string NumberToWords(int number)
{
string[] nu...
Because it is about a not-very-well-known feature of the language. Why would it matter that it’s old? I don’t think I have ever seen this in use in production code.
An explanation like that at the start would have been helpful. I was reading the page and just didn’t understand. Was thinking at first it was to raise awareness of an unanswered question. Couldn’t figure it out so I asked.
Because it is about a not-very-well-known feature of the language. Why would it matter that it’s old? I don’t think I have ever seen this in use in production code.
An explanation like that at the start would have been helpful. I was reading the page and just didn’t understand. Was thinking at first it was to raise awareness of an unanswered question. Couldn’t figure it out so I asked.