for {...}
and for true {...}
are not always equivalent to each other" detail.for range Integer
loops and changed the semantics of for-loop code blocks.Some related contents are added.init
function as early as possible?" tip.unsafe.Alignof
, unsafe.Offsetof
and unsafe.Sizeof
function calls are not constants.clear
built-in function, which can removed map entries with NaN keys.:=
trap but not all of them" in "Syntax and Semantics Related" chapter.The Go 101 project is hosted on Github. Welcome to improve Go 101 articles by submitting corrections for all kinds of mistakes, such as typos, grammar errors, wording inaccuracies, description flaws, code bugs and broken links.
If you would like to learn some Go details and facts every serveral days, please follow Go 101's official Twitter account @zigo_101.