Extend with to take multiple arguments
12345swordy
alexanderheistermann at gmail.com
Wed Jun 5 21:02:39 UTC 2019
On Wednesday, 5 June 2019 at 20:10:40 UTC, Andrei Alexandrescu
wrote:
> On 6/5/19 1:15 AM, ag0aep6g wrote:
>> On 05.06.19 02:57, Amex wrote:
>>> with(A){with(B){with(C){
>>> is quite annoying...
>>
>> You don't need the braces.
>>
>> with (A) with (B) with (C)
>> {
>> ...
>> }
>
> Wow this must be the shortest and most satisfying thread ever.
tbh I found the with keyword to be unnecessarily verbiage. In C#
you can initialize a class like this:
var exp = new Class { };
That is just my opinion though.
Alex
More information about the Digitalmars-d
mailing list