Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9594 > unrolled thread

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

Started byJesse Perla <jesseperla@gmail.com>
First post2012-04-13 08:52 +0000
Last post2012-04-13 08:52 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: What characters are allowed in mathematica variable names? i.e. how Jesse Perla <jesseperla@gmail.com> - 2012-04-13 08:52 +0000

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

FromJesse Perla <jesseperla@gmail.com>
Date2012-04-13 08:52 +0000
SubjectRe: What characters are allowed in mathematica variable names? i.e. how
Message-ID<jm8pgt$itg$1@smc.vnet.net>
Purely aesthetics.  I hate camel case because it is inconsistent with how I
program in other languages, and when translating math I sometimes want
small or large letters in names. (e.g. x is an element, X is the set}

On Thu, Apr 12, 2012 at 9:32 AM, Murray Eisenberg <murray@math.umass.edu>wrote:

> Why not just camel-case? E.g.: myFirstVariable.
>
>
> On 4/12/12 2:35 AM, 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?
>>
>
> --
> Murray Eisenberg                     murrayeisenberg@gmail.com
> 80 Fearing Street                    phone 413 549-1020 (H)
> Amherst, MA 01002-1912
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web