Clone
Rodrigo B. de Oliveira
committed
on 12 Jan 17
Allow element creation via delegate provider
After considering a few different names for the delegate provider (`new`
/ `factory` / `builder… Show more
Allow element creation via delegate provider

After considering a few different names for the delegate provider (`new`

/ `factory` / `builder` / `creator` / `creating`) I settled on

`creating`:

* it shares the same prefix with the element creation methods

  (`create`) so it's arguably more discoverable

* it reads more like prose, specially when coupled with the type

   tasks {

       val deploy by creating(Copy::class) {

           // ...

       }

   }

Resolves #35

Show less

master + 360 more