[Bro-Dev] #754: Complete implementation of switch statement
Bro Tracker
bro at tracker.bro-ids.org
Thu Jan 10 15:49:05 PST 2013
#754: Complete implementation of switch statement
----------------------------+------------------------
Reporter: seth | Owner: robin
Type: Merge Request | Status: closed
Priority: Normal | Milestone: Bro2.2
Component: Bro | Version: git/master
Resolution: fixed | Keywords: language
----------------------------+------------------------
Comment (by vern):
Yeah, the tradeoff is power vs. safety. The Bro language philosophy has
been to go with safety when possible (i.e., when it's not too disruptive
in terms of expressive power or performance).
In my experience with C/C++, cases where you want fall-through are rare -
and in fact come to think of it, probably occur less often than instances
when I've left out a "break" and been surprised! We can always consider
adding a "fallthrough" keyword that enables fall-through if we find use-
cases that are too ugly without it.
--
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/754#comment:23>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list