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

Frank Shearar frank.shearar at gmail.com
Thu May 10 12:51:26 UTC 2012


On 10 May 2012 13:44, Nicolas Cellier
<nicolas.cellier.aka.nice at gmail.com> wrote:
> 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.

GNU Smalltalk has this as well.
(http://www.gnu.org/software/smalltalk/manual/html_node/The-syntax.html)
>
> 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.

BlockContext >> #once , since 2010/07/22 :)

frank

>
> 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