Preserve record fields order #66
MartinSStewart
started this conversation in
Rule ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What the rule should do:
Keep the order of the fields in a record constructor or record update the same as the order in the record definition.
Example of things the rule would report:
Example 1:
a = { y = 0, x = 0 }
would be automatically replaced witha = { x = 0, y = 0 }
Example 2:
a2 = { a | z = 1, x = 1 }
would be automatically replaced witha2 = { a | x = 1, z = 1 }
I am looking for:
Beta Was this translation helpful? Give feedback.
All reactions