To distinguish between an instance and a namespace?
The same can be said for why do we need to put parenthesis after functions that take no parameters? So people still know it's a function.
The same can be said for why do we need to put parenthesis after functions that take no parameters? So people still know it's a function.
let x: int = 0;
It's so that the compiler can distinguish between those two, and likely some other areas too.I’m with OP here. C# proves that . reduces the noise substantially.
I don't know enough about C# to know if it matters. From everything I know, it's a really well designed language, so I'm guessing they made the right call.
It doesn't mean it's the right call everywhere.
In the Ruby world, I think they have the convention of writing `class#method` in docs/comments when mentioning an instance method, and `class.method` when mentioning a static method.
i.e https://docs.microsoft.com/en-us/dotnet/api/system.console.w...