Different between symbol and string ?

C

Chris Li

What is exactly different between symbol and string ? Symbol has never
appear in other language.
 
M

Matthew Moss

What is exactly different between symbol and string ? Symbol has never
appear in other language.

In a sense, symbols appear in almost every language, but under another
name: identifier. A Symbol is an identifier without any associated
storage.

Granted, that's probably too simple/naive an explanation. You might
also try searching the archives for this mailing list; discussions
about Symbol have come 'round many a times with some quite thorough
discussions.
 
P

Phlip

Chris said:
What is exactly different between symbol and string ? Symbol has never
appear in other language.

Except for the Smalltalk #symbol and the Perl "bareword" concept...

Irritatingly, _all_ languages have an internal "symbol table" concept, but they
keep it hidden. Only the best languages expose it as a programmer convenience...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top