3 ms·
Every IDE I've used would show you the name of parameters when you hover the function. These days there are even inlay hints that will transform countDominoTili
by Zababa 4y ago
Every IDE I've used would show you the name of parameters when you hover the function. These days there are even inlay hints that will transform countDominoTiling(4, 7) to countDominoTiling(width: 4, height: 7).
Another option would also be to just pass a struct:
struct dimensions dim = { .width = 4, .height = 7};
countDominoTiling(dim);
My C++ is rusty so this might not compile but you get the idea.
There isn't a big difference with just one simple thing, but when you're having 10 of these things, with some classes having classes in themselves, it quickly becomes a mess.