Number of function arguments

IDFCNS-2
TitleLimit the number of inputs and outputs of a function.
PriorityRecommended
DescriptionLimit the number of inputs and outputs of a function to five. If necessary, combine multiple arguments into a struct. This helps prevent a long calling syntax.
RationaleReadability

Avoid:

out = computeWeight(blockHeight, blockWidth, blockDepth, density, nBlocks, idx);

Instead use:

out = computeWeight(blockData, nBlocks, idx);