習得が容易
言語仕様がシンプル
高速
スタックとヒープ
コールスタックやローカル変数、引数は原則スタック
しかし関数内でnewしてポインタ返す場合はヒープ
ヒープはGC対象
sliceに要素を追加しまくると最初はスタックにおかれていても途中からヒープにおかれる
コンパイル時の厳格なエラーチェック
importしたのに使用しないパッケージがあったり、使用しない変数があるだけでもエラー
GDB does not understand Go programs well. The stack management, threading, and runtime contain aspects that differ enough from the execution model GDB expects that they can confuse the debugger, even when the program is compiled with gccgo.