|
|
| Author |
Message |
< Erlyweb mailing list ~ seeking safe side effect free client side/server side langu |
| jeffm |
Posted: Sat Aug 09, 2008 5:35 am |
|
|
|
User
Joined: 29 Sep 2008
Posts: 43
|
Alright that subject is a mouth full and as clear as mud. Here's a some
what better explaination of what I'm trying to get at:
I'd like a user to be able to design a form through a web interface and
as part of that supply a function that returns a value which will tell
whether the form when filled in is valid. For example, a form is created
which takes a three options a,b,c combinations A XOR B XOR C XOR (B AND
(A XOR C)) are valid, ie you can choose either option a, b, c alone or b
in combination with a or c. So, I'd like the user to be able to supply a
function to check for valid optons, eg,
%% pseudo code
function(Form) {
A = Form.a
B = Form.b
C = Form.c
return valid if A and not B and not C
return valid if not A and B and not C
return valid if not A and not B and C
return valid if A and B and not C
return valid if not A and B and not C
return invalid
}
this is a simple example and is already getting complex which is why I
wish to be able to let the user enter it themselves. The trouble is to
allow this the language used has to be simple, non-recusive, side effect
free, guarranteed to execute in finite time and run on both the server
and in the browser. The only implementation I can think of with similar
requirments is Sieve (http://www.ietf.org/rfc/rfc3028.txt?number=3028 )
for mail messages. Is there anything out there that fit this requirement
or am I barking up the wrong tree? any suggestions on other ways to this
also welcome.
Jeff.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---
Post received from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|