Please improve the with statement by allowing initialisation

monkyyy crazymonkyyy at gmail.com
Wed Mar 12 19:45:08 UTC 2025


On Wednesday, 12 March 2025 at 19:35:53 UTC, Dejan Lekic wrote:
> On Wednesday, 12 March 2025 at 19:25:23 UTC, monkyyy wrote:
>>
>> this is bad but you dont "have to" or "change the lib"
>
> I expected people to start discussing fluent API that is why I 
> wrote what I wrote. Let's stop it right here. I do not want to 
> write code like that if I do not have to. I would rather prefer 
> to use the with statement. Thanks.

I have no idea what a fluent api is, you had code you want, heres 
a small bit of templates that does it. I know it as a "builder 
pattern" and assoate it with verbose impossible to read code


More information about the Digitalmars-d mailing list