Enhancement
CoffeeScript for formulation of validation rules
Issue description
CoffeeScript seems the better choice (than JavaScript) for formulation of validation rules of compound constraints.
Developer comments
The evaluation has two implicitly defined symbols:
[%fail = new ValidationError()%]
[%blame = function () { return new ValidationError(arguments) } %]
Rejection comment
Cool, but no longer relevant. JavaScript is good enough.
Use cases
[%(start, end) -> fail if start and end and start >= end %]
[%(flag, comment) -> fail if flag is no and not comment%]
[%(pictures, comment) -> blame pictures, comment if pictures.length < 4 and not comment %]
|
Work sessions2
Start |
2011-12-20T06:38:00
|
End |
2011-12-20T09:01:49
|
Participant |
Robert Cerny
|
Start |
2011-12-20T11:13:39
|
End |
2011-12-20T12:13:37
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.