4 ms·
I wish there were some syntactic sugar for partial but knowing how patterns like that get abused in other languages maybe it is for the better that there isn't.
by morkalork 2y ago
I wish there were some syntactic sugar for partial but knowing how patterns like that get abused in other languages maybe it is for the better that there isn't.
- globular-toast 2y agoWhat would it look like? Wouldn't it just be lambda?
- BiteCode_dev 2y agoI wish it would at least be a method on any callable.
- morkalork 2y agoYes, sugar so instead of having `partial(foo, w=1, x=2)` or `lambda y,z: foo(1,2,y,z)` just instead something like `foo(1,2,_,_)`