News for hackers. Stuff that matters.
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.
Re:From Rust to TypeScript by cle on Sunday September 13, 2020 @09:59PM (#24465996)
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:

https://play.golang.org/p/lwMBkvnaVm0