#development #golang #pattern #reading-list

๐Ÿ”— Why is Go's declaration syntax "backward"? (The Clockwise/Spiral Rule)


They exist throughout the universe, from the smallest seashells to the largest galaxies.

They exist in mathematics and arts.

The neolithic monument of Newgrange, Ireland, is 5,200 years oldโ€”older than Stonehenge or the Egyptian pyramids. One remarkable feature is the big entrance stone that carries beautiful spiral engravings.

If you enjoyed the book "The Good Spy Guide: Secret Messages" by Falcon Travis and Judy Hindley in your youth, then (a) you are probably as old as I am, and (b) have learned, and maybe even used, the spiral cipher for encrypting and decrypting secret messages.

I don't know whether the designers of the C language knew this book, too, or whether they unintentionally have introduced spirals into the language. But they do exist, and they play a vital role in reading declarations.

continue reading on appliedgo.com

โš ๏ธ This post links to an external website. โš ๏ธ