Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: What characters are allowed in mathematica variable names? i.e. how

  • To: mathgroup at smc.vnet.net
  • Subject: [mg126086] Re: What characters are allowed in mathematica variable names? i.e. how
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Mon, 16 Apr 2012 06:07:40 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

For the auto-generated symbol names, let's say you start with some 
alphabetic stub and then append 6-digit tails; one million distinct 
names isn't enough?

Or start with a few fixed letters for the stub and, complete the stub 
with 5 arbitrary letters (both upper- and lower-case), then append just 
4 digits; that's on the order of 10^12 distinct names.


On 4/15/12 3:18 AM, dr DanW wrote:
> David,
> Don't forget that Workbench is also a perfectly legitimate platform for working in Mathematica, and primarily displays in ASCII. Programming with these Unicode characters with the ungainly \[...] names is a serious pain, and makes for uniquely unreadable code.
>
> Also, camel case is fine when just typing symbol names, but I am currently working on an application where I need to generate symbol names.  Without some kind of delimiting character, some of the generated names may conflict or not be readable.  I ended up using $ out of sheer necessity, as it is on e of the few ASCII non- alphanumeric characters available for naming.

-- 
Murray Eisenberg                     murrayeisenberg at gmail.com
80 Fearing Street                    phone 413 549-1020 (H)
Amherst, MA 01002-1912



  • Prev by Date: Re: What does NotebookDirectory[] do for .m files?
  • Next by Date: Re: dynamically generating options
  • Previous by thread: Re: What characters are allowed in mathematica variable names? i.e. how
  • Next by thread: Re: What characters are allowed in mathematica variable names? i.e. how