Example A-SIGNATURES Re: A Way to express Standard multi-argument
Method Signatures in Smalltalk Re: [ANSI-Smalltalk] Next STEPs
Andres Valloud
andres.valloud at gmail.com
Wed Mar 12 20:54:46 GMT 2008
Just as a personal opinion, I usually type literal arrays in "full detail"
syntax, such as...
#(#abc '123' 456 nil false)
I feel it's more consistent to express individual literals as one would do
outside the scope of a literal array. In that way, #abc is always written
#abc (or #'abc', but not abc).
This is more of a subjective taste thing than anything else though.
Andres.
On Wed, Mar 12, 2008 at 1:34 PM, Paolo Bonzini <bonzini at gnu.org> wrote:
>
> > Somewhat drifting from the original topic, but I'll note that the
> ANSI
> > standard does not have symbols in array without a prefixed # (the
> only
> > "bare" keywords accepted there are true/false/nil and they signify
> the
> > three objects).
> >
> > Which is something I'd change. Which dialects don't support the
> > non-ANSI behaviour?
>
> GNU Smalltalk. I'm not opposed to changing it, *but* watch out because
> it's incompatible. I would also appreciate an input on why the current
> choice was made.
>
> I would oppose for sure having #(abc true) mean "Array with: #abc with:
> true". That would be the worst of both worlds.
>
> Paolo
>
> _______________________________________________
> ANSI-Smalltalk mailing list
> ANSI-Smalltalk at lists.openskills.org
> http://lists.openskills.org/cgi-bin/mailman/listinfo/ansi-smalltalk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openskills.org/pipermail/ansi-smalltalk/attachments/20080312/b5885034/attachment.html
More information about the ANSI-Smalltalk
mailing list