Pre-RFC: Disallow using assignment in a function call in Rust 2018 (disallow `f(a=b)`)

Usage of “=” for struct construction will likely not happen. With that in mind, reserving = for usage in named parameters in function calls doesn’t make a lot of sense. For consistence within Rust, the syntax foo(name: arg) would be the more logical syntax choice for named params (like Swift).

4 Likes