How should variables and user def'd function names be cased?

Learning APL or new to Dyalog? Ask "silly" questions here, without fear...
Post Reply
User avatar
gcr
Posts: 8
Joined: Fri May 13, 2016 1:30 am
Contact:

How should variables and user def'd function names be cased?

Post by gcr »

Hi,

Should variables and user defined functions be all upper case?

Is it OK to mix their case?

What is the standard casing strategy?

Playing around I see that Daylog seems to be case sensitive; which is great.

Sincerely,

Grant Rettke
User avatar
MBaas
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany
Contact:

Re: How should variables and user def'd function names be ca

Post by MBaas »

I'd say it's a matter of personal taste/style. Personally, I dislike ALL UPPERCASE NAMES, reminds me of ancient times when only that was available - although I never worked in such environments ;-)
DanB|Dyalog

Re: How should variables and user def'd function names be ca

Post by DanB|Dyalog »

I think it is a matter of personal taste.
Personally I use lowercase for locals, uppercase for globals and mixed case for programs and more important locals.

Whatever you choose make sure you stick to it though otherwise you will confuse your readers and even yourself!
User avatar
gcr
Posts: 8
Joined: Fri May 13, 2016 1:30 am
Contact:

Re: How should variables and user def'd function names be ca

Post by gcr »

Gotcha. Thank you MBaas and DanB|Dyalog.
Post Reply