2016-01-08 21:17 GMT+01:00 Juraj Kubelka <juraj.kube...@icloud.com>: > Hi, > > 8. 1. 2016 v 17:11, Tudor Girba <tu...@tudorgirba.com>: > > > Hi, > > > > Denis says that right now, to use ifError: you do: > > > > [...] ifError: [:msg :rcv | … ] > > > > and he would like to write this: > > > > [...] ifError: [:error | … ] > > But for this we have on:do: message, right? > Do we need ifError:? >
It is nice convenient method for the case when you don't care what exact error happens. It is very useful for scripting. sum := 0. #(1 asd 4534 5423 sdfs) do: [:each | [sum := sum + each] ifError: []] Actually I never use argument version of block. But it definitely should be error instance and not of one of it properties.