|
|
|
|
|
by bfrydl
2115 days ago
|
|
In my opinion, the first is a terrible interface because I have no idea what any of the parameters do, not because there are so many. The second is a good interface to me because all of the values are labeled. I don't see any problem with having this many parameters when all of those parameters are relevant (see: Vulkan). Named parameters often implies default values too, which means you wouldn't have to specify them all. I basically emulate this in other languages, like Rust, with an “options” struct that has default values. |
|