capnproto-java icon indicating copy to clipboard operation
capnproto-java copied to clipboard

Alternative to builder pattern and allocation

Open gurgl opened this issue 1 year ago • 0 comments

Just looking at the examples I'm missing single constructor per type, instead of builder pattern. Also the idea you need to allocate elements in a collection feels cumbersome to me. Why just not shuv a List in? Both these approaches rely on mutation which doesn't feel it caters to FP.

gurgl avatar Oct 12 '24 15:10 gurgl