Hi there, I come from a C# background and it has something great call Object Initializer. Which allows you to initialize an object inline, without specifying the object everytime.
C# docs:
https://msdn.microsoft.com/en-us/library/bb397680.aspx
I would be cool if the compiler could do something like this:
new MyClass { Field1 = "ASD", Field2 = "QWE" };
Hi there, I come from a C# background and it has something great call Object Initializer. Which allows you to initialize an object inline, without specifying the object everytime.
C# docs:
https://msdn.microsoft.com/en-us/library/bb397680.aspx
I would be cool if the compiler could do something like this: