Maybe an eye opener, but why is everyone obsessed with the try..catch.. Or try..catch..else error handling? Are we trying to copy idioms from another language?
The try..catch..finally in java has always played part in newbie bugs. They tend to skip the error instead of dealing with it. I prefer the simple and straight forward implementation in go. That way, the developer is in control of all the exceptions. On Mon, Feb 17, 2020, 4:04 AM disroot <n...@disroot.org> wrote: > Right? I’m with you here. So thankful with the custodians that prefer > cleaner syntax over complex and shorter ones. > On Feb 16, 2020, 15:39 -0400, Kevin Chadwick <m8il1i...@gmail.com>, wrote: > > I prefer the clarity of the current syntax. What is the obsession with LOC. > > I would further suggest f ?= os.os.Open("filename.ext") : > log.fatal("Cant > open filename.ext") > But the GO 'custodians' get apoplexy whenever they see any syntax that > resembles the C ternary operator. > Chill-out 'custodians' !! > > > I never realised, Thank you custodians! I have always hated ternary one > liners. Much as I dislike needless methods and structs and especially > putting too much into a go one liner with embedded functions that need > extra consideration/concentration before moving on. > > -- > 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/0406AD8C-3A84-4C19-ADA2-5E646B23F1A2%40gmail.com > . > > -- > 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/45f70366-f79e-4a3c-940c-b7d5f71aa069%40Spark > <https://groups.google.com/d/msgid/golang-nuts/45f70366-f79e-4a3c-940c-b7d5f71aa069%40Spark?utm_medium=email&utm_source=footer> > . > -- 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/CAGc48%2BoQ%2BkAGzigCGdZmvDZV5ufxP0LR7yi0se87SQ7dSPbEaA%40mail.gmail.com.