[Bro-Dev] [Proposal] Language extensions for better Broker support

Siwek, Jon jsiwek at illinois.edu
Tue Dec 13 08:53:41 PST 2016


> On Dec 13, 2016, at 6:02 AM, Matthias Vallentin <vallentin at icir.org> wrote:
> 
>  local r = put(store, key, test(lookup(store, key)));

For prototyping purposes, I see the convenience in that, but wonder if the runtime will do something that’s useful and widely applicable enough for that to translate directly into production code.  What exactly does the runtime do if “lookup” fails here besides turn the outer function calls into no-ops?

Just guessing, but in many cases one would additionally want to log a warning and others where they even want to schedule the operation to retry at a later time.  i.e. the treatment of the failure varies with the context.  Is this type of composition flexible enough for that?

- Jon



More information about the bro-dev mailing list