Fear and loathing of the "perification" of Smalltalk
Mathieu Suen
mathk.sue at gmail.com
Tue Sep 4 23:20:41 UTC 2007
On Sep 5, 2007, at 1:11 AM, Peter William Lount wrote:
> Andreas Raab wrote:
>> Damien Pollet wrote:
>>> (*) just on this point I'd prefer to write something like
>>> {[a]. [:x| x b]. [:x | x c]} valueAsChain
>>
>> Nah. I want to write:
>>
>> [a. b. c] piped.
>>
>> SCNR,
>> - Andreas
>>
>>
> HI Andreas,
>
> How would that evaluate? What is piped where to whom? b piped to a
> and c piped to the result of b piped to a?
Same as: {[a]. [:x| x b]. [:x | x c]} valueAsChain
Like in a linux shell:
[:x | x c] value: ([:x| x b] value: [a] value)
>
> See, blocks can do almost everything! Who needs other syntax when
> we have blocks! ;-)
>
> Cheers,
>
> Peter
>
>
Mth
More information about the Squeak-dev
mailing list
|