News for hackers. Stuff that matters.
Re:Introducing Rust Language Server by Manishearth on Wednesday October 19, 2016 @09:56AM (#12743757)
I'm not just talking about Monoid, I'm talking about the overall signature -- with the Fn and the abstractions it's very Haskelly. Such functions are not common in Rust. You find them (all the iterator adaptors, for one), and they can be "good Rust", but they're not common. Which is okay.

(I don't disagree that Rust is more complicated than Python, just addressing GP's comment whether or not this is "good" rust.)

Re:Introducing Rust Language Server by iopq on Thursday October 20, 2016 @12:21AM (#12749713)
It's actually very common to pass around hashmaps of functions in dynamic languages. If anything, since you don't even have to know how they're implemented it's easier. I realize that my function incurs a run time cost because I'm making an array of trait objects. When I'm writing JavaScript I don't know and I don't care.