Am 02.11.2020 um 09:31 schrieb Artur Tarassow:
Am 01.11.20 um 23:40 schrieb Sven Schreiber:
> Am 01.11.2020 um 22:44 schrieb Allin Cottrell:
>> On Sun, 1 Nov 2020, Sven Schreiber wrote:
> series s = defarray("hey", "ho",
"aha")
>
> which would work if $nobs equals the length of the array, otherwise
> provoke an error just like in a matrix-based context. No need to
> complicate things (from the user's point of view) by going through an
> artificial stringify function call.
Hi,
Even though in principle I like the idea of directly defining a
string-valued series as proposed by you, Sven, I think this introduces
some "inconsistency" which we should try to avoid. Inconsistency in the
sense that the syntax
> series s = defarray("hey", "ho", "aha")
works only for very special case which may confuse the user.
IMHO it's exactly the same kind of "confusion" that we have already:
<hansl>
nulldata 3
series x = {2,4,6} # works
series y = {1,2} # incompatible
</hansl>
So I don't see this as a problem, it would be consistent design. A
vector is basically the same thing for numbers that a strings array is
for strings.
cheers
sven