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

Robin Sommer robin at icir.org
Tue Jan 3 08:47:46 PST 2017



On Mon, Jan 02, 2017 at 11:46 -0800, you wrote:

> That would mean we'd have new keywords: is, to, as. I find that's too
> confusing and think we should go with either "to" or "as" but not both.

Yeah, I agree, don't like that version anymore either. I have just
committed a first implementation of the type-based switch that uses
this syntax instead:

    case type string:
        ....

    case type count as c:
        ....


What do you think of that? The additional "type" makes it visually
clear what's it's about, and also helps the parser figure it out.

Robin

-- 
Robin Sommer * ICSI/LBNL * robin at icir.org * www.icir.org/robin


More information about the bro-dev mailing list