Paraphrasing the PEP 20, the Zen of Python:

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.

In many ways I like to compare Go to Python, and a talk I've seen at
Gophercon 2017 from Edward Muller on Go Anti-Patterns taught me a lot about
how Go values simplicity, orthogonality and being explicit.

That said, I think the try proposal is breaking all those rules... Special
cases aren't special enough to break the rules... we don't need a different
type of error handling. Readability counts... explicit is better than
implicit...

I wish we had a Zen of Go and followed it.

Daniela Petruzalek
Software Engineer
github.com/danicat
twitter.com/danicat83


Em sáb, 29 de jun de 2019 às 20:18, Denis Cheremisov <
denis.cheremi...@gmail.com> escreveu:

> And prepare for wider audience in shitty “try” proposal after 1 July.
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/c99b3572-427c-4b7d-91ff-2fb4e4cb9177%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2B%3DiygtUkrJLW1jP9f-Q-YtgkjJnSGVg6rJYW%3DD8jvrjYZwWZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to