Go language warnings and errors

后端 未结 4 1064
刺人心
刺人心 2021-02-19 18:08

It seems that GO language does not have warnings in it. I\'ve observed few instances. 1. \"declared and not used\"(if variable is declared and not used anywhere it gives an e

4条回答
  •  有刺的猬
    2021-02-19 18:49

    From what I just read, (wikipedia) "Go's syntax includes changes from C aimed at keeping code concise and readable."

    The word "concise" is very important to the compiler. I have found out that the syntax enforced by the compiler is no longer "\n" or whitespace agnostic. And there are no "warning" type errors.

    There are good things about Go. There are some not so good things. The attitude of no warnings is a bit extreme, especially when developing or testing a new package. It seems that partial development is not acceptable. Warnings are not acceptable. It is either the production version or the highway. This is a very dualistic point of view. I wonder if evolution would have resulted in "life", if that had been the constraints on nature.

    I can only hope that things will change. Death seems to be very beneficial at times. I have tried Go, and I am disappointed. At my age I don't think I will return.

提交回复
热议问题