This is an internal DSL embedded in Java using Method Chaining and
Grammar interfaces.
Please see Martins Fowler DSL-Book (Work In Progress) at:
http://martinfowler.com/dslwip/
Michael
On Sun, December 16, 2007 18:28, ironwaist29 wrote:
> First all I just finished reading IP and I loved it a great book
> focussing on things that are truly important.
>
> I have a question about a style of coding I encountered in the Guice
> dependency injection framework http://code.google.com/p/google-guice/ that
> I found fascinating and hope you would comment on it here is an
> excerpt
>
> binder.bind(Service.class) .to(ServiceImpl.class)
> .in(Scopes.SINGLETON);
>
>
> It seems that that you could almost form a English sentence coding this
> way is this a good style to use why or why not ?
>
> Troy Taillefer
>
>
>
--