On May 14, 2009, at 8:06 AM, Russel Winder wrote:
<snip>
There is already a method to add actions to a task. Why is the
"<<" syntax
needed? It just seems like more non-obvious magic. Could you not
just use:
task hello.doLast { stuff to do }
<< is traditionally used in C++ and Groovy as an inserter, so append
to
a list, etc. Used in that context it is idiomatic. Used simply to
replace a call of a method that doesn't have inserter semantics, it is
probably a bad thing to do.
Could you explain a bit more what you mean with the last sentence?
- Hans
--
Hans Dockter
Gradle Project lead
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email