I am not obsessed with try catch, I do not even like it. And I 
definitely do not want to copy it or have it in Go. As I said in the post, 
I like to *read* else catch with an implicit try before the function call 
and therefore named it else catch. And I think the else catch is not like 
try catch, at least it was not intended as such.

Dne ponedeljek, 17. februar 2020 07.27.36 UTC+1 je oseba MUNGAI napisala:
>
> 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 <nr...@disroot.org <javascript:>> 
> 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 <m8il...@gmail.com 
>> <javascript:>>, 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 golan...@googlegroups.com <javascript:>.
>> 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 golan...@googlegroups.com <javascript:>.
>> 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/7d7cc627-9938-4059-ac0f-02c6abc126d9%40googlegroups.com.

Reply via email to