3 ms·
> fluent interfaces (the second format) > and as you chain the fluent interface (eg foo().bar().baz()) Aside: A lone method call isn't a fluent interface (th
by Izkata 6y ago
> fluent interfaces (the second format)
> and as you chain the fluent interface (eg foo().bar().baz())
Aside: A lone method call isn't a fluent interface (though I suppose it could be part of one), so the naming here is a bit misleading. A fluent interface is a particular type of method chaining, so the second example may or may not be one depending on what foo/bar/baz actually do.