News for hackers. Stuff that matters.
Re:Construct-JS – A library for creating byte level data str... by sharpercoder on Monday March 18, 2019 @09:07AM (#19420687)
You seem to assume that the passed-in object should also be used as the resulting object. This is false, as they can be decoupled.

In other words, it's still possible to pass in a separate js object instance containing the configuration.

Yet I'm not sure about the whole of your arguments, so I can't tell if it would actually make sense to wrap the default js builder pattern implementation (the javascript object initializer syntax aaaaaaaaaaab refers to).

However, I do method builders often overused in API's where a simple singular builder method combined with builder classes suffice and simplify.

Re:Construct-JS – A library for creating byte level data str... by afandian on Monday March 18, 2019 @09:25AM (#19420791)
Agreed to an extent. But what if you want to extend the API to include the same field twice (for example). The semantics of the input object would prevent that.

I'm reluctant to spend too much time arguing over a fine point. It could be done one way or the other. I was just addressing aaaaaaaaaaab's question.