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

Learning APL or new to Dyalog? Ask "silly" questions here, without fear...

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

Postby gcr on Sat May 21, 2016 4:41 pm

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
gcr
 
Posts: 8
Joined: Fri May 13, 2016 1:30 am

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

Postby MBaas on Tue May 24, 2016 6:25 am

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 ;-)
User avatar
MBaas
 
Posts: 156
Joined: Thu Oct 16, 2008 1:17 am
Location: Gründau / Germany

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

Postby DanB|Dyalog on Tue May 24, 2016 7:02 am

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!
DanB|Dyalog
 

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

Postby gcr on Tue May 24, 2016 1:54 pm

Gotcha. Thank you MBaas and DanB|Dyalog.
User avatar
gcr
 
Posts: 8
Joined: Fri May 13, 2016 1:30 am


Return to New to Dyalog?

Who is online

Users browsing this forum: No registered users and 1 guest