struct SomeArgs { bool normalize{false}; int stride{2}; char ch{'x'}; ... some other stuff };
void someFn(SomeArgs args);
someFn({ .stride = 1, .ch = 'y' }); someFn({ .normalize = true });
not as simple as python but it's close-ish and more readable than: someFn(false, 2, 'c');
struct SomeArgs { bool normalize{false}; int stride{2}; char ch{'x'}; ... some other stuff };
void someFn(SomeArgs args);
someFn({ .stride = 1, .ch = 'y' }); someFn({ .normalize = true });
not as simple as python but it's close-ish and more readable than: someFn(false, 2, 'c');