in reply to Re: RFC: Module feedback desired. App::PPBuild
in thread RFC: Module feedback desired. App::PPBuild

You are right on the Docs, next dist I will add to the synopsis to make it more clear.

I considered using named arguments, but one thing I like about make is the syntax when defining a rule. I wanted to mirror that syntax as closely as possible, not only because I like it, but it will be more familiar for people experienced in make.

':flags:' is something I do not like, and I am currently trying to think of a better system. One alternative is to have flags specified in an optional arrayref at the end of the Task declaration. Or perhaps since the only flag is always, I can make an 'always' task. Flags were not something I originally intended to have at all, but they were brought in because of someone else who is now interested in using this.
  • Comment on Re^2: RFC: Module feedback desired. App::PPBuild

Replies are listed 'Best First'.
Re^3: RFC: Module feedback desired. App::PPBuild
by fullermd (Vicar) on Dec 28, 2008 at 12:15 UTC
    I considered using named arguments, but one thing I like about make is the syntax when defining a rule.

    Yeah, I do too. My initial mental ramblings had a syntax much closer to make's. I eventually decided that greater departure was called for, as I started thinking about the greater flexibility I wanted, and how ugly and shoehorn-ish it would be trying to cram it in without changing the syntax more significantly.

    I figure enough things will differ from make anyway, for just the reasons I'm wanting to replace it in the first place, that trying to put the syntax too close would just make things harder. The user will have to move in a bit different direction anyway, so I might as well favor internal consistency over external. And named args make things more readable and easier; for instance, I'd just put describe as another named arg on task/file.

    Actually, I may go do that. I don't have any description-ish stuff right now; have to think about how that fits in... thanks for the idea 8-}

      What is your project called? is it on cpan? is there anyway I can look at it?
Re^3: RFC: Module feedback desired. App::PPBuild
by exodist (Monk) on Dec 29, 2008 at 02:04 UTC
    Better system:
    • flags are specified in arrayrefs, flag arrayrefs can go anywhere in the list just like :flags: did.
    • task { named params }; is an alternative to using ordered. You can use either.

    This is done in version 0.12, docs have been updated.