News for hackers. Stuff that matters.
Re:More intuitive partial function application in Python by d0mine on Wednesday February 23, 2022 @01:02PM (#30444150)
It doesn't look natural to me nesting one arg functions in Python: lambda x: lambda y: lambda z: ..

What would the harm be to adapt the abstract notion (curry) for the specific language instead of trying to apply it literally (ugly)?

For example, I remember the notion of iteration is introduced in SICP using the syntax that were it to be translated literally into Python would look like recursive calls— obviously it would be unnatural to represent iterations this way in Python.

There are no comments on this comment yet.