June 9, 2016
2:43 p.m.
Le 9/6/16 à 09:04, Marcus Denker a écrit :
On 08 Jun 2016, at 19:46, stepharo <stepharo@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