[Bro-Dev] vectors (Re: syntax consistency question)
Robin Sommer
robin at icir.org
Wed Mar 30 21:09:41 PDT 2011
On Wed, Mar 30, 2011 at 21:00 -0700, you wrote:
> Well, depends on how you define consensus.
Defined as "hearing no objections so far". :)
> I prefer indexing to start with 1. I think use of 0-basing is a
> holdover from C's too-low-level model equating arrays with pointers.
Maybe, but it's so common also with many other languages that I find
it not worth the confusion that a different base causes.
> much, I'm not going to fight hard. However, I can picture an attribute
> &base=1 or whatever to re-base particular vectors.
Oh, please not. That would be even worse because now one has to check
everytime whether a vector has that attribute.
Robin
--
Robin Sommer * Phone +1 (510) 722-6541 * robin at icir.org
ICSI/LBNL * Fax +1 (510) 666-2956 * www.icir.org
More information about the bro-dev
mailing list