Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9597
| From | Yi Wang <tririverwangyi@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: What characters are allowed in mathematica variable names? i.e. how |
| Date | 2012-04-13 08:54 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jm8pjo$iur$1@smc.vnet.net> (permalink) |
| References | <jm64l6$6lq$1@smc.vnet.net> |
It's an interesting question. I also tried to find the answer. The only character that I found is $. Say you can write my$first$variable. But anyway I am more used to myFirstVariable than $. Best, Yi On Thursday, April 12, 2012 4:44:22 AM UTC-4, Jesse Perla wrote: > In other languages like C++, _ is a kosher character to be in variable names. It is not in mathematica, so things like "my_first_variable" don't work. I have been using a ` to separate out the words to get things like my` first`variable, but now realize it is creating other issues due to the scoping it introduces. > > Are there are other characters I can use to separate out words in variable names? > > Thanks
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What characters are allowed in mathematica variable names? i.e. how Jesse Perla <jesseperla@gmail.com> - 2012-04-12 08:44 +0000 Re: What characters are allowed in mathematica variable names? i.e. how Yi Wang <tririverwangyi@gmail.com> - 2012-04-13 08:54 +0000 Re: What characters are allowed in mathematica variable names? i.e. how David Reiss <dbreiss@gmail.com> - 2012-04-13 08:55 +0000 Re: What characters are allowed in mathematica variable names? i.e. how Ray Koopman <koopman@sfu.ca> - 2012-04-13 08:58 +0000
csiph-web