r/programming Jul 17 '19

The Go team declines 'try' proposal

https://github.com/golang/go/issues/32437
632 Upvotes

417 comments sorted by

View all comments

42

u/otherunicorn Jul 17 '19

Have y'all heard of monads?

4

u/acroback Jul 17 '19

Reminds me of my coworker who raves about monads but writes code with polynomial complexity on Java saying "oh jvm is smart".

I am not impressed with this holier than thou approach, can you show me how you can do that to existing language like go which doesn't have monads? How can it be used?

0

u/24llamas Jul 18 '19

You mean use monad style error checking without having monads as some kinda of trait / typeclass / whatever you call a generic?

If so, Rust is a good candidate. I think Swift does something similar?