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
Original bug ID: 7308 Reporter: SpiceGuid Status: acknowledged (set by @xavierleroy on 2017-02-23T16:07:04Z) Resolution: open Priority: low Severity: feature Version: 4.03.0 Category: lexing and parsing
Bug description
This is a oneliner :
object method one = 1 end # one;;
Trivially corrected as :
(object method one = 1 end) # one;;
Immediate objects also must also be parenthesised when used as a function actual argument.
Additional information
My intuition is that the end keyword closes a parenthesis.
I don't understand why i should add more nesting.
The text was updated successfully, but these errors were encountered:
This issue has been open one year with no activity. Consequently, it is being marked with the "stale" label. What this means is that the issue will be automatically closed in 30 days unless more comments are added or the "stale" label is removed. Comments that provide new information on the issue are especially welcome: is it still reproducible? did it appear in other contexts? how critical is it? etc.
Anybody has an opinion on this ?
I don't quite remember why I chose to keep immediate objects as complex expressions.
On the other hand, I personally think that keeping the parentheses makes the code more readable, but other may think differently.
Original bug ID: 7308
Reporter: SpiceGuid
Status: acknowledged (set by @xavierleroy on 2017-02-23T16:07:04Z)
Resolution: open
Priority: low
Severity: feature
Version: 4.03.0
Category: lexing and parsing
Bug description
This is a oneliner :
object method one = 1 end # one;;
Trivially corrected as :
(object method one = 1 end) # one;;
Immediate objects also must also be parenthesised when used as a function actual argument.
Additional information
My intuition is that the end keyword closes a parenthesis.
I don't understand why i should add more nesting.
The text was updated successfully, but these errors were encountered: