C# Empty Statement

后端 未结 13 2273
情深已故
情深已故 2020-11-29 12:34

The C# language specification defines the empty-statement grammar production, which allows me to do something like this:

static void Main(string[] a         


        
13条回答
  •  温柔的废话
    2020-11-29 12:51

    Eric Lippert's a good person to ask.

    Mostly, I suppose it's because it wouldn't cause any harm and it simplified their handling of the grammar. Also, why restrict people when you don't have to?

提交回复
热议问题