[Bro-Dev] #983: Deep typing bug
Bro Tracker
bro at tracker.bro.org
Mon May 13 18:21:40 PDT 2013
#983: Deep typing bug
----------------------+------------------------
Reporter: seth | Owner:
Type: Problem | Status: new
Priority: High | Milestone: Bro2.2
Component: Bro | Version: git/master
Resolution: | Keywords:
----------------------+------------------------
Comment (by robin):
The <> syntax would work well technically but it's not something we're
using yet, so I'm reluctant on that as well.
I like Seth's idea with using type names. That's indeed very readable.
Actually it *improves* readability; with the standard record ctor, [...],
it can be hard to figure out what type it eventually coerces into.
Downside is obviously that it works only for named types, but for records
that's not an issue and I think there are not that many other cases where
one actually needs it (the original case in this ticket is one, but I
don't think it's very common).
(Not sure about the "=>" syntax for tables though)
--
Ticket URL: <http://tracker.bro.org/bro/ticket/983#comment:9>
Bro Tracker <http://tracker.bro.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list