Re: Vote on data structure name
Marc Nieper-Wißkirchen 14 Oct 2020 06:23 UTC
It's not just the mathematical use or the use in physics. In medicine,
say, vector also means carrier or agent.
Moreover, the term "vector" is not used ubiquitously in computer
science with the meaning of a growable data structure. In some
programming languages or libraries, yes, it is but that doesn't mean
that one should follow their example. Especially because the current
meaning of the term "vector" in Scheme is aligned with the ordinary
meaning of the word vector.
While I agree that a stone lion is a kind of lion (in some abstract
sense), I am disagreeing that a dynamic array is, in some natural way,
a kind of vector.
Of course, all this is just bikeshedding. But I would prefer not to
pervert the meaning of words if not strictly necessary. And at this
point, we still have a choice, which the C++ people don't have
anymore.
PS When you do numerics, mathematical vectors in a 4096-dimensional
space can, of course, be common.