# \[JIRA\] (BIT-1159) count/port comparisons silently fail when part of a record

**URL:** <https://community.zeek.org/t/jira-bit-1159-count-port-comparisons-silently-fail-when-part-of-a-record/3044>\
**Category:** Development\
**Tags:** development\
**Created:** [March 20, 2014, 11:22am UTC](https://community.zeek.org/t/jira-bit-1159-count-port-comparisons-silently-fail-when-part-of-a-record/3044 "2014-03-20T11:22:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robin](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/robin/32/599_2.png) [@robin](https://community.zeek.org/u/robin)\
**Post date:** [March 20, 2014, 11:22am UTC](https://community.zeek.org/t/jira-bit-1159-count-port-comparisons-silently-fail-when-part-of-a-record/3044/1 "2014-03-20T11:22:09Z")

</div>

> Is the original code actually supposed to work?

Yeah, I'm afraid it is ... That has indeed been a legitimate shortcut  
since Bro's early versions. However, I wouldn't veto removing it; it  
does indeed make some code parts quite a bit more complex, and I don't  
think it's a crucial feature to have and rarely used anyways.

---

<div class="post-metadata">

**Author:** ![Seth\_Hall3](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@Seth\_Hall3](https://community.zeek.org/u/Seth_Hall3)\
**Post date:** [March 20, 2014, 12:55pm UTC](https://community.zeek.org/t/jira-bit-1159-count-port-comparisons-silently-fail-when-part-of-a-record/3044/2 "2014-03-20T12:55:24Z")

</div>

I don’t actually like shorthand either and would be fine removing it. I always forget that it’s even possible to do that.

.Seth

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:41pm UTC](https://community.zeek.org/t/jira-bit-1159-count-port-comparisons-silently-fail-when-part-of-a-record/3044/3 "2022-05-06T15:41:39Z")

</div>


