It seems I'm hearing that a lot. If C++/Java is so great and go is so "primitive"... well what all these people are still doing in here? ;)
And i'd take "primitive" if err!=nil over exceptions any time of the day, at least code is streamlined, ordered and easy maintainable this way. Then i can even add any new code which supports error handling inside block that properly does error handling without looking at previous code, another advantage of this "primitive" approach. With go i can take anything and move it around almost freely. I hate try/catch both in C++ and in Java. I'm not even sure why we need another complex, general purpose, inconvinient language. If people would need all that "great" C++ stuff they could easily ... use it? That's the best we can do, take decades old way of looking at things because it allows developers to be lazy even if it results in code which doesn't handle errors in optimal manner, is hard to maintain and millions of flies can't be wrong? All these "modern" OOP ideas are making code we write today so unreadable and fragmented it's impossible to write anything in any sane amount of time because of size of codebases we need to maintain nowdays. And you want to bring that craziness back? If people are missing proven, dominant methods... i think the correct way is just going back to C++, D or Java. They had all of these "modern" "features" 10 years ago ;) W dniu sobota, 29 czerwca 2019 22:20:47 UTC+2 użytkownik Robert Engels napisał: > > I think you are confusing with ‘doing nothing as compared to the ‘try’ > proposal’ with ‘do nothing’. > > Go error handling is primitive at best, and people want a solution, just > not the ‘try’ proposal - which is the basis of my comment email - go back > to what is proven to work - Java and C++ are the dominant languages in use > today, adding their exception based error handling to Go is ‘the way to Go” > :) > > -- 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/61cfc96d-92e0-46a1-8579-47324ec8e5f7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.