[Bro-Dev] #422: Array-style index accessor for strings

Bro Tracker bro at tracker.bro-ids.org
Thu Dec 27 09:11:45 PST 2012


#422: Array-style index accessor for strings
---------------------+----------------------
  Reporter:  seth    |      Owner:  robin
      Type:  Task    |     Status:  reopened
  Priority:  Normal  |  Milestone:  Bro2.2
 Component:  Bro     |    Version:
Resolution:          |   Keywords:  language
---------------------+----------------------
Changes (by jsiwek):

 * status:  closed => reopened
 * type:  Merge Request => Task
 * resolution:  fixed =>


Comment:

 Replying to [comment:4 robin]:
 > Merging, but what would you guys think about {{{s[1:4]}}} instead of
 {{{s[1,4]}}} (i.e., Pythonian)?

 I had done it like `s[1,4]` just because that's the style other indexing
 in the language used, but I think I side with Vern's argument for `s[1:4]`
 if we were to vote now.  I'll work on changing it in about a week unless
 there's more discussion in the meantime.

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/422#comment:10>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list