Open AppAppWorks opened 4 days ago
In my original plan, I wanted to insert optional chaining for any code affected by the refactoring in the same source file, do you think it's a worthwhile and feasible effort?
In my original plan, I wanted to insert optional chaining for any code affected by the refactoring in the same source file, do you think it's a worthwhile and feasible effort?
The question is: What exactly should we do here? I can think of essentially three options:
nil
where nil
wasn’t acceptable beforeI would be leaning towards option (1) even though I don’t like introducing force unwraps to the user’s code base.
Is it worthwhile?
I think the biggest win with such an implementation is to have a blueprint of a refactoring that uses information from sourcekitd and the index to then perform syntactic refactorings. This refactoring in itself isn’t all that interesting, I think but it could clear the pathway for quite a few interesting refactorings. Some that come to my mind would be:
fixed #1320