Rename {P,T}exp_{struct_item => letitem}#14171
Conversation
Renaming is fine regardless, it causes a bit of churn, but I don't think it's worse than, say, adding locations to the ast, which happens regularly. |
|
I'm not fond of
|
|
I expect that the name would be understandable just fine in context. But I guess But IMO, it would just be simpler to fold Pexp_let into Pexp_letitem anyway. Less invariants, more similarly between similar constructs this way. |
|
Discussed further in today's triage meeting. All in all, there was no consensus in favour of this renaming, and some developers were in favour of the current name. Closing then due to lack of agreement. |
Following discussion over at #14040 this PR proposes to rename the
Pexp_struct_item(and its typed tree avatar) toPexp_letitem. The main rationale is that havingletin the constructor name better reflects what the AST node is about.Pexp_let_struct_itemcould be an alternative, but it is a bit of a mouthful.For discussion.
(NB: this constructor has not yet been released to the world, so renaming is still OK.)