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

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


On 10 May 2012 11:14, Levente Uzonyi <leves at elte.hu> wrote:
> On Thu, 10 May 2012, H. Hirzel 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.

It's a terminology issue: here, people are saying "dynamic array"
instead of "lightweight syntax for declaring an array".

I'd have called OrderedCollection a _growable_ array (or a vector);
both OrderedCollection and Array are "dynamic" in the sense that
they're mutable :)

(But why invent new terms when we can just overload existing ones?!)

frank

> Levente
>
>> Is this correct? If yes when? References?
>> Which other Smalltalk dialects do have them?
>>
>> Regards
>> Hannes
>>
>>
>> On 5/8/12, Janko Mivšek <janko.mivsek at eranova.si> wrote:
>> [...snip]
>>>
>>>
>>> Dne 08. 05. 2012 09:55, piše Göran Krampe:
>>>>
>>>> Hi guys!
>>>>
>>>> I just posted an article about JSON/STON/Literal arrays/Tirade - and it
>>>> is probably easiest to read at planet.smalltalk.org (my blog has a
>>>> rather bad theme I realized):
>>>>
>>>> http://planet.smalltalk.org
>>>>
>>>> ...or at my blog:
>>>>
>>>>
>>>> http://goran.krampe.se/2012/05/08/literal-arrays-vs-json-vs-ston-vs-tirade
>>>>
>>>> Sven - sorry for beating down a bit on STON in that article, nothing
>>>> personal and I love all the stuff you have done, I just have a hard time
>>>> placing STON in my toolbox. If you can give me good arguments why I am
>>>> dead wrong - please do! ;)
>>>>
>>>> And regarding Tirade, feel free to criticize that too of course, it is
>>>> still not set in stone and all input is appreciated, including telling
>>>> me it sucks :).
>>>>
>>>> The most interesting bit of the article is perhaps my thoughts on
>>>> literals in Smalltalk - would be nice to hear what people thinḱ. And oh,
>>>> sorry for the length of the article - it kinda swelled.
>>>>
>>>> regards, Göran
>>
>>
>
>
>


More information about the Squeak-dev mailing list