[squeak-dev] The Trunk: EToys-topa.121.mcz

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Thu Apr 2 23:39:47 UTC 2015


2015-04-03 1:32 GMT+02:00 Tobias Pape <Das.Linux at gmx.de>:

>
> On 03.04.2015, at 01:00, Chris Muller <asqueaker at gmail.com> wrote:
>
> > On Thu, Apr 2, 2015 at 5:52 PM, Tobias Pape <Das.Linux at gmx.de> wrote:
> >> Hi,
> >>
> >> On 03.04.2015, at 00:32, Levente Uzonyi <leves at elte.hu> wrote:
> >>
> >>> I prefer to use Symbols instead of Strings for class names, because
> they make it easier to find potential users of the class.
> >
> > +1
> >
> >> yes, but #hasClassNamed: is a String protocol.
> >
> > A Symbol is a String.  Many (if not all) existing users of
> > hasClassNamed: pass Symbols (a special kind of String).
>
> I don't want to rely on that.
> Symbols being Strings is an implementation detail.
> Looking at the broader picture, in GemStone, in fact
> a Symbol is not a String.
>
> Best
>         -Tobias
>

Yes, but String/Symbol equality is an implementation detail.
In Visualworks 'foo' ~= #foo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150403/2167c147/attachment.htm


More information about the Squeak-dev mailing list