Nov. 1, 2009
5:17 p.m.
Oh, wait.. you mean that if i want, say 35 out of 50 announcement kinds to be logged, then i need to do something like:
logblock := [:announcement | ... ]. announcer on: AnnouncementKind1 do: logblock. announcer on: AnnouncementKind2 do: logblock. .... announcer on: AnnouncementKind35 do: logblock.
? Do you agree that this is far from being short and elegant? Moreover it imposes dependency from various kinds of events, instead of just one (LoggedAnnouncement), and, if i going to change them somehow, i would need to revisit this code again.. and again.
announcer on: AnnouncementKind1 , AnnouncementKind2 , ... AnnouncementKind35 do: logblock -- Lukas Renggli http://www.lukas-renggli.ch