newLISP Fan Club

Forum => Anything else we might add? => Topic started by: Dmi on May 23, 2006, 11:21:17 PM

Title: non-alpha charachers in symbol names
Post by: Dmi on May 23, 2006, 11:21:17 PM
Hi, Lutz!



I like an idea to use some non-alpha prefixes for some of my symbols.

For example '%name to represent an index of something data in a record-like list, so I then can use (lst %name) instead of (lst 5) etc.



According to continous development of newlisp, is there ones, which can be used safely, not conflicting to future syntax improvements?
Title:
Post by: Lutz on May 24, 2006, 12:16:10 AM
!,@,$,%,^,&,*,/,<,>,? these are all safe to use as prefixes, only with ! you have to be careful not using it at the beginning of a command line where is invokes the shell.



In general you could say, if it works as a symbol you can use it as a symbol.



Lutz