Open coolaj86 opened 2 years ago
I believe both Go and Rust behave this way - you have to pick a side (either positional arguments, or named keys).
doStuff({ name: myName, age, shoe_size: shoeSize, })
doStuff({ name: myName, age: age, shoe_size: shoeSize, })
let name = myName; let shoe_size = shoeSize; doStuff({ name, age, shoe_size, })
I believe both Go and Rust behave this way - you have to pick a side (either positional arguments, or named keys).
Bad Example
Good Examples