Post #3613086
2025-12-28 15:59 UTC
@dotstdy@mastodon.social @ianh@mastodon.social Has any recent language adopted uncurried single arg style where product types are used for multiple args rather than implicit currying? I know that Swift originally started in this direction, but I forget the actual reason why they backed away from this. Can you refresh my memory, @joe@f.duriansoftware.com ?
Replies (1)
-
@foonathan@fosstodon.org 2025-12-29 16:47
@zwarich@hachyderm.io @dotstdy@mastodon.social @ianh@mastodon.social @joe@f.duriansoftware.com Related, but why isn't first class multiple return values a thing more often? For example, the C++26 standard library has senders/receivers which essentially work via continuations, so you can write async functions that take N inputs and M outputs natively without resorting to tuples. You can even send outputs of different types without having to box them into a sum type (because they just statically dispatch to different overloads).