And symbols are immutable 

Brad 

Sent from my iPad

> On Apr 7, 2016, at 9:41 PM, Markus Stumptner <m...@cs.unisa.edu.au> wrote:
> 
> As a result, internal names (e.g., method names) are usually symbols. Strings 
> are normally used for string manipulation, symbols for unambiguous (but 
> humanly readable!) internal reference (vulgo 'naming').
> 
> Markus
> 
> 
>> On 08/04/16 10:53, Ben Coman wrote:
>> A symbol is like a string, except that all symbols with the same value
>> are in fact the same object; that is, every #hello symbol is the exact
>> same object as every other #hello symbol.
>> 
>> See "identically equal" section here...
>> http://sdmeta.gforge.inria.fr/FreeBooks/ByExample/08%20-%20Chapter%206%20-%20Special%20Symbol.pdf
>> 
>> cheers, ben
>> 
>> On Fri, Apr 8, 2016 at 7:20 AM, Valentin Ryckewaert
>> <valentin.ryckewa...@gmail.com> wrote:
>>> Hello everyone,
>>> 
>>> i'm learning Pharo and i'm having difficulties to understand the symbols,
>>> what are they? How are they different of the ByteString ? Why are they
>>> usefull ?
>>> Why should I put #string where I can put 'string' ?
>>> 
>>> Thanks in advance for your answer.
>>> Valentin Ryckewaert
> 
> 

Reply via email to