Jon Siwek created BIT-1315:
Summary: Teach Bro how to 'while'
Project: Bro Issue Tracker
Issue Type: New Feature
Reporter: Jon Siwek
Fix For: 2.4
topic/jsiwek/while has an implementation of a general purpose 'while' loop. If
one wants to hack around the current limitation of only looping over collections,
they're going to do it (e.g. recursion), so why not just provide a more convenient
way instead? The mess you have to write to work around the limitation may be more
error-prone than just providing a simple while loop.
An alternative to adding 'while' to the language might be to allow "for
()" to be an unbounded loop and force the author to put the necessary break/return
conditions in the body.
This message was sent by Atlassian JIRA