3 ms·
> 1. Assignment by name. If A and B are structs (not official PL/I terminology), then A + B A = B copies similarly named fields of B to corresponding fields in
by tofflos 5y ago
> 1. Assignment by name. If A and B are structs (not official PL/I terminology), then A + B A = B copies similarly named fields of B to corresponding fields in A.
Do you mean something like with-expressions? See https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/with-expression https://docs.microsoft.com/en-us/dotnet/csharp/language-refe....
- steeleduncan 5y agoI believe golang has a feature like this as well
- masklinn 5y agoThe text isn't really clear, but from the wording it reads like the PL/I version will copy between existing instances of completely unrelated types. AFAIK `with` will only "copy with overwrites", similar to e.g. Rust's `..x`.