Le 9/6/16 à 09:04, Marcus Denker a écrit :
On 08 Jun 2016, at 19:46, stepharo <steph...@free.fr> wrote:


   60072
18451 Do not use #ifNotNilDo:ifNil:,  #ifNil:ifNotNilDo:, #ifNotNilDo:
        https://pharo.fogbugz.com/f/cases/18451


Is there a rule for such case?

Indeed, there are!

RBRuleIfNotEmptyDo
RBRuleIfNotNilDo

Excellent!


Added in Pharo5, so we can deprecate these methods in Pharo6.

(Maybe we can use them as a reason to add the “automatic rewrite deprecation”
in Pharo6… with the idea that it says “this is departed, but I can fix it for 
you”.
At runtime we can do that with 100% correctness.)

        Marcus





Reply via email to