2 ms·
I'd argue that functions with only position arguments are a place where you'd never want to use this proposal, ever. A tuple or list would be the right data str
by kstrauser 3y ago
I'd argue that functions with only position arguments are a place where you'd never want to use this proposal, ever. A tuple or list would be the right data structure to pass in there.
- JulianWasTaken 3y agoOf course it would be irrelevant for a function that only took positional arguments. I was demonstrating the existence of such things in general since OP seemed unaware. For the proposal, you'd of course only use it for functions that took more kinds of arguments.
- necovek 3y agoThanks for pointing it out. Still, it seems highly unlikely someone would decide to use such a function declaration yet want to use the proposed syntax to pass both positional and keyword arguments.