|
|
|
|
|
by radonek
1433 days ago
|
|
You are going from one extreme to other and in my experience this will end up messy, unless interface in question really allows for all possible parameter combos. I'd rather ask which params are required and give a serious thought to setting up sensible defaults for the rest, so that you can end with something like this: resizeImage(imagePath, 300, 200, {crop: true})
Python use this pattern everywhere, with keyword params it just feels natural. |
|