jecisc / Bazard

0 stars 0 forks source link

Idea of Rule: Replace #substrings: usage with a string of size 1 by #splitOn: #205

Closed jecisc closed 5 years ago

jecisc commented 5 years ago

Migrated case from Manuscript.

Original case: https://pharo.fogbugz.com/f/cases/20527 Status: Work Needed Project: Usability Original Author: CyrilFerlicot Date: 12 October 2017 12:56:54 pm

Description:

I see a lot of usage of #substrings: that could be replace by #splitOn: which is really faster in some applications.

Maybe we could make a rule checking the users of #substring: and if the parameter is a string of size 1 propose an automatic refactoring to #splitOn: or #split?