[Pharo-users] ifNotEmpty(Do):

Peter Uhnák i.uhnak at gmail.com
Sat Oct 10 12:55:16 EDT 2015


Collection>>ifNotEmpty: comment says

"If the block has an argument, eval with the receiver as its argument,
but it might be better to use ifNotEmptyDo: to make the code easier to
understand"

yet when I do that, Code Critic complains:
ifNotEmptyDo: should not be used as ifNotEmpty: works for blocks with
arguments, too.


1) who is right? what should I use?
2) shouldn't one be deprecated then? (or maybe one of them is to be
compatible with other smalltalks?)

Thanks,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20151010/fea0c310/attachment.html>


More information about the Pharo-users mailing list