2 ms·
Ya. Builder, Composite, Method Chaining implementations are (can be) isomorphic. Thanks for the immutables.org link. Amazing. FWIW, I once fudged a UI DSL for
by specialist 9y ago
Ya. Builder, Composite, Method Chaining implementations are (can be) isomorphic.
Thanks for the immutables.org link. Amazing. FWIW, I once fudged a UI DSL for AWT/Swing using annotations. It sucked. Too many edge cases requiring shims. Mostly because the underlying UI components were not designed for (clean) composition.
Like the OP, I went a little nutty with Fluent APIs for a while. Never again.
Now I prefer Builder for small stuff and DSLs for anything interesting. Composite & Intepreter is a potent combo.