News for hackers. Stuff that matters.
Re:Idiomatic Monads in Rust by leshow on Thursday April 04, 2019 @11:19AM (#19573323)
Pretty misleading to write "... I want to demonstrate that monads are feasible in Rust." if that's not actually the case
Re:Idiomatic Monads in Rust by reificator on Thursday April 04, 2019 @04:35PM (#19576829)
> Pretty misleading to write "... I want to demonstrate that monads are feasible in Rust." if that's not actually the case

When not taken out of context, I don't think it's misleading at all.

> You see, there’s a problem with talking about whether monads would be useful or not, and it’s this: there are a large number of design challenges to overcome to have any hope of implementing them at all — to the best of my knowledge, there currently exists no realistic (that is, practical) design for monads in Rust. In fact, there are so many obstacles that some people express doubt that it’s even possible.

> In general, I don’t think it’s worth talking about the virtue of a language feature if we think there’s no way we could actually implement it. However, I think there are arguments to be made in favour of higher-level abstractions in Rust. Thus, to facilitate discussion, I want to demonstrate that monads are feasible in Rust.

Re:Idiomatic Monads in Rust by estebank on Thursday April 04, 2019 @11:52AM (#19573750)
Feasible as in "can be reasonably added to the language", not as in "can be mimicked with current language features".
Re:Idiomatic Monads in Rust by leshow on Friday April 05, 2019 @09:31AM (#19582282)
There's no discussion of implementation, we have no idea how "reasonable" an implementation would or wouldn't be. My assumption from reading this is it would require a ton of non trivial additions to the type system
Re:Idiomatic Monads in Rust by JeremyBanks on Friday April 05, 2019 @09:34AM (#19582308)
You are not the target audience.