Re:Diagnosing a Linux-only unit test failure
by steveklabnik on Monday October 09, 2017 @01:44PM
(#15435869)
Yes, you can't do something like this in Rust, you'd be doing what's in the quote above; named params are it. You have to do the attribute access/method call when binding the parameter, not applying it to a parameter somehow.
> ("lhs=({}, {}); rhs=({}, {})", lhs.x, lhs.y, rhs.x, rhs.y)
Python 3.6 added "natively interpolated" f-strings, just replace C#'s `$` prefix by `f`, and even without f-strings you could write e.g.
Rust supports named parameters but IIRC not attribute access or method calls.