[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Re: Dictionary>>#addAll: fails
From: |
Jānis Rūcis |
Subject: |
[Help-smalltalk] Re: Dictionary>>#addAll: fails |
Date: |
Fri, 30 Mar 2007 19:13:19 +0300 |
User-agent: |
Icedove 1.5.0.10 (X11/20070307) |
Stephen Compall wrote:
>> I think the "this message expects a literal" thing is pretty weird.
>
> The idea is to get the user thinking in terms of what good brace-syntax
> for instances would be.
I understand that, and actually having thought about it, it seems that I
was just confused by the documentation. I would suggest:
"Answer a new instance of Dictionary initialized from the keys and
values of Associations in anArray. This method is for convenience
only; it allows its argument to be conveniently specified as a
braced Array literal that is structured accordingly: {'key' ->
'value'. 'another key' -> 'another value'}."
And maybe suggest that any other usage is considered "misuse" and is
"strongly discouraged or bad things will happen"... :) Basically I
think it should make it very clear that it's there for convenience.
That would also explain why Array>>#from: answers its argument instead
of a new instance, which seems inconsistent with Collection and Dictionary.
Jānis
- Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary>>#addAll: both fail, (continued)
- Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary>>#addAll: both fail, Paolo Bonzini, 2007/03/23
- Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary>>#addAll: both fail, Jānis Rūcis, 2007/03/23
- Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary>>#addAll: both fail, Paolo Bonzini, 2007/03/23
- Re: [Help-smalltalk] Dictionary>>#addAll: fails, Stephen Compall, 2007/03/23
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Paolo Bonzini, 2007/03/26
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Stephen Compall, 2007/03/29
- Re: [Help-smalltalk] Re: Dictionary>>#addAll: fails, Paolo Bonzini, 2007/03/30
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Stephen Compall, 2007/03/29
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Jānis Rūcis, 2007/03/29
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Stephen Compall, 2007/03/29
- [Help-smalltalk] Re: Dictionary>>#addAll: fails,
Jānis Rūcis <=
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Stephen Compall, 2007/03/30
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Jānis Rūcis, 2007/03/31
- Re: [Help-smalltalk] Re: Dictionary>>#addAll: fails, Paolo Bonzini, 2007/03/31
- [Help-smalltalk] Re: Dictionary>>#addAll: fails, Stephen Compall, 2007/03/31
- Re: [Help-smalltalk] Re: Dictionary>>#addAll: fails, Paolo Bonzini, 2007/03/30
- Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary>>#addAll: both fail, Paolo Bonzini, 2007/03/23
- Re: [Help-smalltalk] CharacterArray class>>#lineDelimiter and Dictionary>>#addAll: both fail, Jānis Rūcis, 2007/03/23