[squeak-dev] Re: Pragmas (Re: The Inbox: Morphic-phite.429.mcz)

Hannes Hirzel hannes.hirzel at gmail.com
Mon Apr 26 23:36:56 UTC 2010


On 4/26/10, Hannes Hirzel <hannes.hirzel at gmail.com> wrote:
> On 4/26/10, Bert Freudenberg <bert at freudenbergs.de> wrote:
>> On 27.04.2010, at 00:47, Hannes Hirzel wrote:
>>>
>>> And: to me the code for the menu definitions looks ugly. A kind of
>>> assembler like, lisp-s expression thing with a lot of implied
>>> assumptions.
>>
>> You mean this?
>>
>> MenuEntrySpec newFrom: (Dictionary newFromPairs: #(
>> 		contents 'Well... hello?'
>> 		help 'Displays the Hello World'
>> 		location ('Help')
>> 		target MenuMorph selector inform: arguments ('Hello World!')
>> 		position first))
>

Yes, I agree with you Bert. It looks somewhat like s-expressions. But
it need not. I could construct the dictionary with 'regular' Smalltalk
code. Having a dictionary to move parameters around is quite common.

However as I said in my previous message - the pragma based solution
is fine for me.

--Hannes



More information about the Squeak-dev mailing list