Re: "Soft" failures with spec?

2017-02-18 Thread Linus Ericsson
much about the general structure of the data (and the specs). /Linus [1] Chris Houser, "Condition Systems in an Exceptional Language" https://www.youtube.com/watch?v=zp0OEDcAro0 On Saturday, February 18, 2017 at 12:42:25 AM UTC+1, Josh Tilles wrote: > > Has anyone explored using spec for

Re: "Soft" failures with spec?

2017-02-18 Thread Austin Haas
I have the same problem: I need to log warnings based on some criteria and reject records completely based on other criteria. I'm currently using two separate specs, but I haven't convinced myself that is the best solution. -- You received this message because you are subscribed to the Google

"Soft" failures with spec?

2017-02-17 Thread Josh Tilles
Has anyone explored using spec for “soft” failures? For example, if I’m writing an ETL system to migrate legacy customer account data, all I might require of a record’s :created field is that the value is a syntactically valid date-time string. If any record claimed that it was created