wjhonson@aol.com wrote:
My entire point Neil was simply that, "short-time-to-learn" should also be a consideration.? To me, a language that borrows heavily from an *already known* source like English or even BASIC is easier to learn, than one which requires that every command be learned again without any prior foundation.? I am not a subscriber to tech.? I don't think I want to be.
Wikitech-l is undoubtedly the right forum for this discussion, so we really should continue this discussion there.
I find it rather difficult to understand exactly what you want here. Could you please give an example, even a rough one, of the sort of syntax you are proposing?
For example, how would you write something like, say, this artificial example:
{{#switch: {{#iferror: {{#expr: {{{1}}} + {{{2}}} }} | error | correct }} | error = that's an error | correct = {{{1}}} + {{{2}}} = {{#expr: {{{1}}} + {{{2}}} }}}}
in your new notation?
-- Neil
On Wed, Jul 8, 2009 at 12:23, Neil Harrisusenet@tonal.clara.co.uk wrote:
{{#switch: {{#iferror: {{#expr: {{{1}}} + {{{2}}} }} | error | correct }} | error = that's an error | correct = {{{1}}} + {{{2}}} = {{#expr: {{{1}}} + {{{2}}} }}}}
{{#perl if( error( eval( "$arg1+$arg2" ) ) ) { return "that's an error"; } else { return "1+2=", $arg1+$arg2; } }}
:-)
But really, any above cited language should work, the more easy to parse (and to create an interpreter) the better. I guess a lua-like language should be easy and readable.
wikitech-l@lists.wikimedia.org