non-alpha charachers in symbol names

Started by Dmi, May 23, 2006, 11:21:17 PM

Previous topic - Next topic

Dmi

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?
WBR, Dmi

Lutz

#1
!,@,$,%,^,&,*,/,<,>,? 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