-
Notifications
You must be signed in to change notification settings - Fork 173
Parentheses on left-hand side of curried call are optional #710
Conversation
|
💕!!! |
|
Will this also work for UDT member access? For example: let numbers = [Complex(1.0, 2.0), Complex(2.0, 3.0)];
let firstReal = Head(numbers)::Real; |
|
No, both named and array items must use parentheses: (Head(numbers))::Real
(Tail(numbers))[0] |
|
@msoeken The choice here is between supporting |
|
@bettinaheim Would requiring parentheses in |
|
Thanks for the additional info @smarsha and @bettinaheim. From my own experience, I tend to add parentheses around |
|
Merging this for now since I expect any future changes to the parser related to functors/item access will preserve the repeated call syntax without parentheses. |
This PR makes the parentheses on the left-hand side of a curried call optional, so these are equivalent: