Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


What would it look like? Wouldn't it just be lambda?


Yes, 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,_,_)`


I wish it would at least be a method on any callable.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: