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 * [email protected] * www.icir.org/robin
_______________________________________________
bro-dev mailing list
[email protected]
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev