Is there any language that allows spaces in variable names

Is there (or has ever been) any non-trivial language that allows spaces in variable names?

I know the language of Whitespace , but I'm interested in a language that was actually used for something other than a demo.

I ask this out of sheer curiosity.

+6
whitespace esoteric-languages
source share
2 answers

In a way, yes. A few variable variable names are actually just keys to a higher level object. Both Coldfusion and Javascript come to mind. In Javascript you can write foo=bar , but you really said:

 window['foo'] = bar; 

You can write just as easily

 window['i haz a name'] = bar; 

Different areas in Coldfusion can also be viewed as either (dict | hash | associative array) or name.

Of course, once you create a name with a space, it is harder for it to access without using the hash search syntax.

+3
source share

TSQL will allow you to use spaces in table and column names, since you have this between the square brackets [ ]

Theres a fantastic article that sql will let you get away from here http://www.sqlservercentral.com/blogs/philfactor/archive/2009/08/14/evil-code.aspx

+1
source share

All Articles