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

I’ve been working with JavaScript for just as long. It uses the : as well. This doesn’t mean that it makes sense though. It’s an assignment.

In any case, you’re right with one thing: Struct construction and the syntax for named params (if we ever get them) should use the same notation. Be it : or =.

1 Like