> Even if you're not doing OOP you're modeling your domain in one way or another.
Using structs to bundle function parameters doesn't preclude or inhibit using them for domain modeling.
Using structs to bundle function parameters doesn't preclude or inhibit using them for domain modeling.
I'm not sure which came first, but structs are a ~60 year old concept. That ship has sailed.
Keyword arguments and structs are both named collections of values. Structs just happen to have broader uses. You can argue that we should use the more specialized one, but that's pretty silly--do we implement a general "add(a, b)" function or do we use more specialized add1(b), add2(b), add3(b) functions? Of course we use the more general tool even though a more specialized tool could exist.