Re:From Rust to TypeScript
by zem on Saturday September 12, 2020 @08:56PM
(#24457280)
even more annoyingly, you can define a function that returns it but not a function that accepts it, so you often have to jump through a lot of hoops to combine higher order functions with multiple return values.
[ Parent
| on HN ]
Not sure what you mean, functions can take multiple return values as arguments just fine: https://play.golang.org/p/l7s7i-QyRnM
Re:From Rust to TypeScript
by JamesSwift on Monday September 14, 2020 @09:56AM
(#24470177)
_sort of_. Again, the leaky abstraction comes through when you try to add additional params in addition to the multiple return: