r/ProgrammingLanguages • u/jamiiecb • Apr 10 '26
Borrow-checking surprises
https://www.scattered-thoughts.net/writing/borrow-checking-surprises
52
Upvotes
r/ProgrammingLanguages • u/jamiiecb • Apr 10 '26
View all comments
Show parent comment
5
u/iBPsThrowingObject Apr 10 '26
My feeling is that defining argument evaluation order is altogether a mistake. It should at most be opt-in, like
repr(C)for field ordering.I've never really tried to poke holes in this idea, there probably are downsides, but it feels like giving the compiler more flexibility to "just do what I mean" would be good.