[Pharo-project] [squeak-dev] Re: A comparative article (was STON - Smalltalk Object Notation)

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Thu May 10 12:44:36 UTC 2012


It's evaluated dynamically in the sense that you construct a different
instance at each send,
versus statically constructed at compiled time as a literal.

Note that Dolphin has syntax for statically evaluated expression at
compile time ##( 1 + 2 sin )
Of course, sin must exist, and if you later change it, you have to recompile.

And VW has the add-on caching trick:  [ 1 + 2 sin ] once,
evaluated once at first send.
A bit less problems since it doesn't depend on load order.

Nicolas

2012/5/10 Göran Krampe <goran at krampe.se>:
> Hi!
>
>
> On 05/10/2012 12:14 PM, Levente Uzonyi wrote:
>>>
>>> Hello
>>>
>>> A question about dynamic arrays
>>>
>>> Goran writes that he thinks they were introduced in Squeak?
>>
>>
>> Göran wrote:
>> "It is simply a dynamic {} array (was introduced originally in Squeak I
>> believe) but with the assumption that the expressions all evaluate to
>> Associations that are limited to a string as key."
>>
>> So it's not about dynamic arrays, but arrays created with the brace
>> syntax. And yes, that was introduced in Squeak.
>>
>> Btw OrderedCollections are dynamic arrays.
>
>
> Sorry for the slightly confusing nomenclature ;)
>
> regards, Göran
>


More information about the Squeak-dev mailing list