On Fri, Mar 28, 2014 at 2:57 PM, Kent Fredric <[email protected]> wrote:
>
> On 29 March 2014 06:12, Ciaran McCreesh <[email protected]>
> wrote:
>>
>> These look a lot like they're just parameters to an eclass... An
>> alternative approach is to make this explicit, rather than having
>> zillions of environment variables:
>
> inherit perl-module [
> runtime.requires = [ "Moose", "HTTP::Tiny" ]
> ]
At what point are we basically inventing our own high-level
programming language, mostly designed around the
limitations/idiosyncrasies of bash?
I'm all for ditching the GLOBALVAR1=foo ; gosub bar paradigm, for all
the reasons everybody else ditched this in the 60s. It just seems
painful to try to do it in bash.
For a sane programming language you'd just write:
reqlist.add("Moose")
reqlist.add("HTTP::Tiny")
inherit perl-module [ runtime.requires=reqlist ]
Or better still find some way of doing it without passing the
parameters on the inherit line. A convenient dynamic syntax would be
more useful for cache-safe parameters - an RDEPEND isn't necessarily
the best example.
Mind you, I'm not saying we shouldn't consider the exherbo approach.
Without a significant overhaul of the EAPI and ditching bash I doubt
we'd improve on it much.
Rich