« Return to Thread: [squeak-dev] Renaming "Squeak"

Re: [squeak-dev] Renaming "Squeak"

by Jason Johnson-5 :: Rate this Message:

Reply to Author | View in Thread

On Wed, Mar 5, 2008 at 10:23 PM, David Mitchell
<david.mitchell@...> wrote:
>
>  Brace notation for dynamic arrays!

So instead of:

dictionary := { $a -> 1. $b -> 2. $c -> 3 } asDictionary.

I need to type:

dictionary := Dictionary new
                       add: $a -> 1;
                       add: $b -> 2;
                       add: $c -> 3;
                       yourself.

?  In my opinion the other dialects should adopt this or propose
another way of doing it.  No concise syntax for dynamically creating a
collection seems a problem to me, and easy to remedy in a language
where one has access to the reader/compiler.  So why would it be bad
to do so?

 « Return to Thread: [squeak-dev] Renaming "Squeak"

LightInTheBox - Buy quality products at wholesale price!