Skip to content
Discussion options

You must be logged in to vote

I'm not sure anyone actively involved in the project today could tell you why the code is the way it is; it seems to date back a little over six years. A better question would be whether there are any improvements that could be made that would be compatible with existing code, and I think that's a pretty hard constraint to meet. Perhaps ListArrayBuilder.Build could throw an exception if the first offset is anything other than zero? The only programs which would be broken by this should be those that are already producing invalid arrays.

I often think it would be nice to redesign the builder APIs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mobiusklein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants