> On Dec 13, 2016, at 11:42 AM, Matthias Vallentin <vallen...@icir.org> wrote: > >>> local r = put(store, key, test(lookup(store, key))); > > It's up to the user to check the result variable (here: r) and decide > what to do: abort, retry, continue, or report an error.
The thing that got me about that for this particular example was that I can’t distinguish whether the "lookup" or the “put” failed, which might be important since the “test” operation is between them and I may or may not want “test" to happen in the retry attempt depending on what exactly failed. Not really making an argument/vote against this feature, just thinking out loud whether it would be something I’d personally use on the chance it helps you better plan/design. Still think I’d instead always manually unpack/test individual async return values. - Jon _______________________________________________ bro-dev mailing list bro-dev@bro.org http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev