A Way to express Standard Method Signatures in Smalltalk Re:
[ANSI-Smalltalk] Next STEPs
Panu Logic
panulogic at gmail.com
Sat Mar 8 20:23:24 GMT 2008
This is great, collecting the de-facto standards
into the standard.
I understand the discussion here can go from
high level to low level details, like a yo-yo. So
here's my 2-cents.
For a long time, I've stumbled into the thought
that Smalltalk lacks some very useful if simple
String facilities available in other dynamic languages
such as Perl, Python, Ruby, or even Javascript.
This may be due to the fact that while other languages
of that Cambrian period were very text -focused,
Smalltalk wanted to make a distinction with Objects.
But today, with the prevalence XML and HTML,
string-facilities are more needed than ever.
For instance the following method would get a lot
of use if available:
String -> #split: -> String -> CollectionOfString
- The argument is a String which if found
within the receiver is used to split it into
parts which are returned as the result,
as a Collection of Strings.
With that said, let me step a level up and focus on the fact
that it would be nice to have a formal way of expressing
the argument- and return-types of a method.
Now imagine that the above method-signature could be
an evaluable Smalltalk expression whose value is a
set of connected Associations
receiverClass -> selectorSymbol -> argumentClass -> resultClass
-Panu Viljamaa
Paolo Bonzini wrote:
> Andres Valloud wrote:
>> I'd like to take care of the enhancement gcd one. If we can get
>> consensus on useful things we all use but that are missing from the
>> spec, then IMO those should get included.
>
> We can start putting "missing methods" at
> http://smalltalk.gnu.org/wiki/ANSI_Smalltalk-98_Extensions to decide
> what should be included...
>
> 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/20080308/d4544191/attachment.html
More information about the ANSI-Smalltalk
mailing list