non-alpha charachers in symbol names

For the Compleat Fan
Locked
Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

non-alpha charachers in symbol names

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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

Locked