[Bro-Dev] [Proposal] Language extensions for better Broker support
Robin Sommer
robin at icir.org
Tue Jan 3 08:50:36 PST 2017
On Tue, Jan 03, 2017 at 10:21 +0100, you wrote:
> > [result, value] = Broker::lookup(h, 42) # Returns [Broker::Result, opaque of Broker::Data]
> > if ( result == Broker::SUCCESS ) ...
> I would prefer this solution, as it feels more natural coming from other
> languages like python. Introducing new keywords/magic functions like
> status()
Actually it's the opposite: status() wouldn't need anything new,
that's part of the appeal there. It would just be a bif (although
probably called Broker::status()) that takes the Broker opaque and
query its most recent state.
Robin
--
Robin Sommer * ICSI/LBNL * robin at icir.org * www.icir.org/robin
More information about the bro-dev
mailing list