You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Current method
A -> C
B -> C
// Proposed method
A, B -> C
The syntax is obviously only a suggestion, but I think it fits with the existing syntax (another option could be to group using braces, i.e. {A, B} -> C).
Reasoning
As near as I can tell, we currently have no way to group elements in assignments. This means that if we have multiple elements going to one element or vice versa, the source file can get unwieldy with large amounts of similar lines. Collapsing them would make the source more legible.
The text was updated successfully, but these errors were encountered:
Example
The syntax is obviously only a suggestion, but I think it fits with the existing syntax (another option could be to group using braces, i.e.
{A, B} -> C
).Reasoning
As near as I can tell, we currently have no way to group elements in assignments. This means that if we have multiple elements going to one element or vice versa, the source file can get unwieldy with large amounts of similar lines. Collapsing them would make the source more legible.
The text was updated successfully, but these errors were encountered: