Programming Language with Variable Rules?
May 8, 2007 11:42 PM
Subscribe
Is there an existing programming language with variable syntax rules that can be set at compile time/interpreter-time?
For my Master's work, I am doing some research on the psychology of computer programming. For user test purposes, it would be extremely useful to have a language (academic/not-popular ones are fine) that allowed you to determine some rules (static vs weak typing, space-sensitivity, variable scoping, etc) at compile-time, so that I'd have fine-grained control on what aspects of the language were varying from trial to trial.
I want to avoid the pitfall in programming research of comparing apples to oranges (or, say, Ruby to C++) and then concluding that something in the apple made it better than the orange, if that makes sense. Any ideas? Is such a language even feasible? Any interesting work I should have a look at in this field? Thanks!
posted by mikeyk to technology (14 comments total)
1 user marked this as a favorite
I mean, heck, variable scoping is a two-line change when you're writing a compiler if you happen to have written a compiler like the one I wrote, so there's no reason not to allow it as an option other than shooting yourself in the foot reasons. And space sensitivity? I can't think of that many languages where space sensitivity makes any difference to anyone, other than Python, everyone's favorite counterexample.
I'm sure you will get much better answers from people who didn't sleep through languages...I'm going to go Google this :)
posted by crinklebat at 12:00 AM on May 9, 2007