buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor Hugo Borja" <>
Subject Buildr#project given a block
Date Mon, 14 Apr 2008 16:18:49 GMT
I'm just wondering, what would you think of having the Buildr#project method
to optionally take a block, if provided it will just act as #define
currently does.
Reason behind this is that it seems (IMHO) a bit more natural to say
"project('cool') { ..stuff.. }'

   define('foo') do
        define('bar') do
            compile.with project('foo')

should be equivalent to:

   project('foo') do # providing a block is a project definition
        project('bar') do
            compile.with project('foo') # without block is just a reference,
just like it currently is.

In code terms this would be a minor change, and should not introduce
incompatibilities with ~>1.2 buildfiles.
Of course the #define method will stay, at least for 1.3 series.

What you guys think about this.


Quaerendo invenietis.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message