News for hackers. Stuff that matters.
Re:Examples of beautiful Go? by 4ad on Thursday March 14, 2013 @12:57PM (#5376159)
You are correct. I'll also add that consistent formatting provides an excellent aid for grepping. Sometimes you want to search for code in the standard library that does something similar to what you do, or you are looking for a specific idiom. Consistent formatting helps making a simple regular expression pretty exhaustive.

Combined with structural regular expressions you can answer questions like "what are the types that contain both a mutex and a map, and what are the types that contain the types that use a map without a mutex": http://pastebin.ca/2202690

There are no comments on this comment yet.