Requesting a design pattern for functions that take lots of parameters. For example this way:
fn foo(parameter_0: type, parameter_1: type, parameter_2: type, parameter_3: type, parameter_4: type, parameter_5: type, parameter_6: type) -> type {
// function body
}
is a way that I think should be an anti-pattern because it's too wide. I prefer things to be less than 80 chars wide.
Requesting a design pattern for functions that take lots of parameters. For example this way:
is a way that I think should be an anti-pattern because it's too wide. I prefer things to be less than 80 chars wide.