by owlish · 11y ago · 0 comments
Obviously, this can apply to many sorts of fluent API. This is at least part of what Tony Morris is alluding to in his essay on API design [1].
[1] http://blog.tmorris.net/posts/understanding-practical-api-de...
the builder should fail with a good error message if there are required fields you didn't supply to the builder.