Unformatted text preview: another (among other things). The only operation that specifically handles symbols is checking whether two symbols are the same (using symbol=? ). You cannot perform any operation that requires looking at the characters in the symbol (as alphabetic ordering would require). Which Should I Use? Symbols are good for enumerating a fixed set of choices that you want to represent as words (like 'small , 'medium , 'large ). If you want data that can have a non-standard number of variations, such as names, use strings. You can use punctuation marks to get the effect of space in symbols (as we did with the 'hot-dog symbol). 1101 Home Page file:///C|/Documents%20and%20Settings/Linda%20Grauer/My. ..to%20Design%20Programs/Notes/08.28%20symbol-string.html [2/5/2008 5:08:00 PM]...
View Full Document
This note was uploaded on 02/06/2008 for the course CS 1102 taught by Professor Fisler during the Fall '07 term at WPI.
- Fall '07