Original case: https://pharo.fogbugz.com/f/cases/19419
Status: Work Needed
Project: Usability
Original Author: CyrilFerlicot
Date: 2 December 2016 3:35:18 pm
Description:
I am not sure this is wanted in all cases but I think this feature can be cool:
The idea is to check when we auto complete a method if this method come after another keyword. In that case it should be surrounded by parenthesis in most cases.
For example if I want to add to a collection an element I will call the method #add:. But if I want to add the result of another method, and this method is a keyword it will not be valid.
self add: aCollection collect: #something
To be valid we need parenthesis
self add: (aCollection collect: #something)
Maybe Pharo can be smart and directly add those parenthesis. :)
Migrated case from Manuscript.
Original case: https://pharo.fogbugz.com/f/cases/19419 Status: Work Needed Project: Usability Original Author: CyrilFerlicot Date: 2 December 2016 3:35:18 pm
Description:
I am not sure this is wanted in all cases but I think this feature can be cool:
The idea is to check when we auto complete a method if this method come after another keyword. In that case it should be surrounded by parenthesis in most cases.
For example if I want to add to a collection an element I will call the method #add:. But if I want to add the result of another method, and this method is a keyword it will not be valid.
self add: aCollection collect: #something
To be valid we need parenthesis
self add: (aCollection collect: #something)
Maybe Pharo can be smart and directly add those parenthesis. :)