Extend with to take multiple arguments
Laurent Tréguier
laurent.treguier.sink at gmail.com
Thu Jun 6 07:19:15 UTC 2019
On Thursday, 6 June 2019 at 00:29:33 UTC, Adam D. Ruppe wrote:
> On Wednesday, 5 June 2019 at 21:02:39 UTC, 12345swordy wrote:
>> tbh I found the with keyword to be unnecessarily verbiage. In
>> C# you can initialize a class like this:
>> var exp = new Class { };
>
> What does that have to do with the `with` keyword?
I think that what 12345swordy means is that in C#, you can
directly initialize class members in the curly brackets:
var exp = new Something() {
SomeMember = 42
}
So you get shorter syntax to init class members, without the need
for a "with" keyword.
More information about the Digitalmars-d
mailing list