Now, who is creative enough to add “dynamic array” (one with curly braces) and
temporaries in a block to the original thing:
exampleWithNumber: x
| y |
true & false not & (nil isNil) ifFalse: [self halt].
y := self size + super size.
#($a #a "a" 1 1.0)
do: [ :each |
Transcript show: (each class name);
show: ' '].
^x < y
Uko
On 16 Jun 2014, at 15:35, Oscar Nierstrasz <[email protected]> wrote:
>
> I got it from Stef, who always said it came originally from Ralph Johnson.
>
> http://c2.com/cgi-bin/wiki?SmalltalkSyntaxInaPostcard
>
> Googling around finds various copies of this, but no original source.
>
> Oscar
>
> On 16 Jun 2014, at 10:58 , Yuriy Tymchuk <[email protected]> wrote:
>
>> I guess it’s here: http://files.pharo.org/media/flyer-cheat-sheet.pdf
>>
>> I think that it would be interesting to put the syntax on a postcard. It can
>> work as a proof of concept, some addition cheat-sheet for newcomers and also
>> as some king of souvenir.
>>
>> Uko
>>
>> On 16 Jun 2014, at 10:36, stepharo <[email protected]> wrote:
>>
>>> you have the flyer of Damien (no idea where it is) but no real postcard.
>>>
>>> Stef
>>>
>>> On 16/6/14 09:35, Yuriy Tymchuk wrote:
>>>> Hi guys,
>>>>
>>>> we all are talking about the syntax fitting in a postcard, but was there
>>>> any real postcard with Pharo syntax prototype? This would be really
>>>> interesting.
>>>>
>>>> Uko
>>>>
>>>>
>>>
>>>
>>
>>
>
>