Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

language variable name constraints

Name: alex 2013-04-11 14:15

I think it would be neat to have a language that allowed variable names like "MAX-CONNECTIONS". Most languages won't allow that because of the hyphen being the minus operator. If the language enforced whitespace between variables and operators (which I'm not sure I would like, even though I always include that whitespace), the compiler would be able to tell the difference between a variable "MAX-CONNECTIONS" and subtracting one variable from another "MAX - CONNECTIONS".

Would this just be too ambiguous or would you entertain the idea of a language that allowed this?

I don't know what it is, but I dislike underscores.

Name: Anonymous 2013-04-11 14:26

That's a brilliant idea for a language. I think I'll call it Lisp, after the way faggots talk.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List