> We could also make the two different return values explicit: > > [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() might be conceptually elegant from the perspective of the Bro language itself but makes it more difficult to learn the language respectively understand code. Jan _______________________________________________ bro-dev mailing list [email protected] http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev
