The `with` construct is good, but it could be great

jmh530 john.michael.hall at gmail.com
Wed Jul 20 19:21:38 UTC 2022


On Wednesday, 20 July 2022 at 18:15:10 UTC, IGotD- wrote:
> [snip]
>
> Does D need a "with" statement? I don't know and it also 
> depends how the libraries are written. I'm personally not 
> completely against introducing "with" in D. D has tried to 
> follow Rust lately but I rather see that D follows C# as it is 
> a better fit.

D already has `with`...
https://dlang.org/spec/statement.html#with-statement


More information about the Digitalmars-d mailing list