Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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-refe....



The 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`.


I believe golang has a feature like this as well




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: