I do not quite understand why it is proposed to use foo({ x: 1, y: true })
instead of just foo{ x: 1, y: true }
. That is, without parens. I mean, this is what it is done with enum’s variants. Would removing the parens break something in this context?
1 Like