Hi Matthew,
Am I correct in concluding that you want to do this validation in production code? If so, can you post a specific example showing the nesting?
Bill
--
You received this message because you are subscribed to the Google Groups "specs-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specs-users...@googlegroups.com.
To post to this group, send email to specs...@googlegroups.com.
Visit this group at http://groups.google.com/group/specs-users.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Matthew,
Am I correct in concluding that you want to do this validation in production code?
If so, can you post a specific example showing the nesting?
Hi Matthew,
Sorry for the delay in responding. Today's a meetings day. I will think about this on the train.
What will you want if validation fails? Error messages for each failure? One error message? An exception? What will you do, log the problem? Show a message to a user?
Hi Bill,On 23 January 2014 22:53, Bill Venners <bi...@artima.com> wrote:
Hi Matthew,
Sorry for the delay in responding. Today's a meetings day. I will think about this on the train.No worries - we all have hectic livesWhat will you want if validation fails? Error messages for each failure? One error message? An exception? What will you do, log the problem? Show a message to a user?All the above, depending on the phase of the moon. Ideally I want back a data structure detailing the failures which I could then render as needed for that specific application. In future I may need to extend this to a lint-like tool that suggests fixes, but this isn't needed now.
Hi Matthew,
No seats in the train. So on phone. Quick question: you want that kind of syntax in production code not the tests, correct?
Bill
Yes, exactly. This is going into production code that will be run to validate data input and report violations of the data format, e.g. through a web page that validates user files and potentially highlights the offending bits, or as tool-tips in a CAD tool.Standing on a train sucks.