Page 1 of 1

non-alpha charachers in symbol names

Posted: Wed May 24, 2006 6:21 am
by 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?

Posted: Wed May 24, 2006 7:16 am
by Lutz
!,@,$,%,^,&,*,/,<,>,? 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