Am 19.04.2017 um 22:20 schrieb Riccardo (Jack) Lucchetti:
On Wed, 19 Apr 2017, Allin Cottrell wrote:
> OK, fixed in git. But I wonder if, for use in this sort of
context, we
> might want a more syntactically robust way of defining a list (as
> opposed to "space between series IDs = list concatenation").
Yes indeed, I think in the spirit of gretl/hansl it would make sense to
allow the space-separated list definition only in the context of gretl
commands. However, of course there's a bigger-than-average compatibility
issue there if some current usage would be disallowed. Introducing
something like deflist() and make that the recommended way would
probably be a good compromise.
> list hey = big ? x : deflist(x,y,z)
This would be very nice. Perhaps deflist() should take lists as well as
series as arguments.
Indeed it would be nice also to build function list arguments
on-the-fly, so instead of:
<hansl-now>
list tobeinput = x y
mylistargfunc(tobeinput)
</hansl-now>
this:
<hansl-future>
mylistargfunc( deflist(x, y) )
</hansl-future>
thanks,
sven