[squeak-dev] #in: for collections
Tobias Pape
Das.Linux at gmx.de
Sat Dec 26 15:11:40 UTC 2009
This feels to me like pattern matching in more
functional based programming languages like haskel, isn't it?
So Long,
-Tobias
Am 2009-12-26 um 12:20 schrieb Bert Freudenberg:
> […] sharedActivity getChannels in: [:tpService :tpConn :tpChannels |
> tpChannels collect: [:channel |
> TelepathyChannel
> connection: tpConn dbusConnection
> busName: tpService
> objectPath: channel dbusPath]]
>
> ... however, #in: only works with single-argument blocks. Making #in: work with multi-arg blocks is of course possible but feels not right either. Does anybody have an idea for a better selector? Or another idea for how to code this? […]
More information about the Squeak-dev
mailing list
|